diff --git a/assets/menu/menu.json b/assets/menu/menu.json
index 5bc2b1e2f..7c9775101 100644
--- a/assets/menu/menu.json
+++ b/assets/menu/menu.json
@@ -9,16 +9,8 @@
"to": "/introduction"
},
{
- "name": "Vite Setup",
- "to": "/vite"
- },
- {
- "name": "Nuxt Setup",
- "to": "/nuxt"
- },
- {
- "name": "Configuration",
- "to": "/configuration"
+ "name": "Installation",
+ "to": "/installation"
},
{
"name": "Playground",
@@ -26,6 +18,38 @@
}
]
},
+ {
+ "name": "Installation",
+ "icon": "pi pi-cloud-download",
+ "children": [
+ {
+ "name": "Vite",
+ "to": "/vite"
+ },
+ {
+ "name": "Nuxt",
+ "to": "/vite"
+ },
+ {
+ "name": "CDN",
+ "to": "/cdn"
+ }
+ ]
+ },
+ {
+ "name": "Configuration",
+ "icon": "pi pi-cog",
+ "children": [
+ {
+ "name": "Options",
+ "to": "/configuration"
+ },
+ {
+ "name": "CSS Layer",
+ "to": "/csslayer"
+ }
+ ]
+ },
{
"name": "Components",
"icon": "pi pi-compass",
@@ -536,10 +560,6 @@
"name": "Accessibility",
"to": "/guides/accessibility"
},
- {
- "name": "CSS Layer",
- "to": "/guides/csslayer"
- },
{
"name": "PrimeTV",
"icon": "pi pi-youtube",
diff --git a/doc/cdn/ComponentDoc.vue b/doc/cdn/ComponentDoc.vue
new file mode 100644
index 000000000..479acad80
--- /dev/null
+++ b/doc/cdn/ComponentDoc.vue
@@ -0,0 +1,20 @@
+
+ Include the component to use with a script tag. Create an app container element and setup the application using createApp. A complete example using a PrimeVue DatePicker. You can also view this sample live at Stackblitz.
+ PrimeVue plugin is required to be installed as an application plugin to set up the default
+ You can use PrimeVue and Vue.js from a CDN with a script tag. This approach does not involve any build step, and is suitable for enhancing static HTML. This guide uses
+ unpkg however other providers such as jsdeliver and
+ cdnjs can also be used.
+ Include the theme file with a link element, see
The style classes of PrimeVue are defined under the primevue CSS layer to be easier to customize by having low specificity. If you are using a CSS library that styles default HTML elements such as Tailwind Preflight, Bootstrap,
Normalize, or similar, a custom CSS layer configuration might be necessary with the cssLayerOrder option to make sure primevue layer is defined afterward. This only applies to Styled Mode as Unstyled Mode does not use any default
- styles or layers. View the
Defines the CSS layer order setting for compatibility with libraries like Tailwind and Bootstrap in styled mode. Visit the
Defines the CSS layer order setting for compatibility with libraries like Tailwind and Bootstrap in styled mode. Visit the
The style classes of PrimeVue are defined under the primevue CSS layer to be easier to customize by having low specificity. If you are using a CSS library that styles default HTML elements such as Tailwind Preflight, Bootstrap,
- Normalize, or similar, a custom CSS layer configuration might be necessary. This only applies to Styled Mode as Unstyled Mode does not use any default styles or layers. View the
Setting up PrimeVue in a Vite project.
+