diff --git a/apps/showcase/doc/cdn/ExampleDoc.vue b/apps/showcase/doc/cdn/ExampleDoc.vue index 39879b7ce..ff6fc7cc9 100644 --- a/apps/showcase/doc/cdn/ExampleDoc.vue +++ b/apps/showcase/doc/cdn/ExampleDoc.vue @@ -20,8 +20,8 @@ export default {
diff --git a/apps/showcase/doc/nuxt/DownloadDoc.vue b/apps/showcase/doc/nuxt/DownloadDoc.vue index c13ef301a..fd32f96d6 100644 --- a/apps/showcase/doc/nuxt/DownloadDoc.vue +++ b/apps/showcase/doc/nuxt/DownloadDoc.vue @@ -15,16 +15,16 @@ export default { code: { basic: ` # Using npm -npm install primevue@4.0.0-rc.2 -npm install --save-dev @primevue/nuxt-module@4.0.0-rc.2 +npm install primevue +npm install --save-dev @primevue/nuxt-module # Using yarn -yarn add primevue@4.0.0-rc.2 -yarn add --dev @primevue/nuxt-module@4.0.0-rc.2 +yarn add primevue +yarn add --dev @primevue/nuxt-module # Using pnpm -pnpm add primevue@4.0.0-rc.2 -pnpm add -D @primevue/nuxt-module@4.0.0-rc.2 +pnpm add primevue +pnpm add -D @primevue/nuxt-module ` } }; diff --git a/apps/showcase/doc/nuxt/SetupDoc.vue b/apps/showcase/doc/nuxt/SetupDoc.vue index f231af691..17ab095b2 100644 --- a/apps/showcase/doc/nuxt/SetupDoc.vue +++ b/apps/showcase/doc/nuxt/SetupDoc.vue @@ -1,9 +1,6 @@
- In nuxt.config file, add the @primevue/nuxt-module to the modules section and define primevue object for the configuration of the module. View the
-
In nuxt.config file, add the @primevue/nuxt-module to the modules section and define primevue object for the configuration of the module.
Styled mode provides pre-skinned components, default theme is Aura with emerald as the primary color. See the
Install the @primevue/themes add-on package as the themes are not included in PrimeVue by default.
+Configure the module to use a theme like Aura.
+
+ In unstyled mode, the components do not include any CSS so you'd need to style the components on your end, this is especially useful when building your own UI library on top of PrimeVue. Visit the
+
The nuxt-primevue module registers the components automatically so you may start using them instantly. See the
The nuxt-primevue module registers the components automatically so you may start using them instantly.
When autoImport is disabled, use the include and exclude for manual registration.
The components to import and register are defined with the include option using a string array. When the value is ignored or set using the * alias, all of the components are registered.
In case all components are imported, particular components can still be excluded with the exclude option.
diff --git a/apps/showcase/doc/nuxt/configuration/DirectivesDoc.vue b/apps/showcase/doc/nuxt/configuration/DirectivesDoc.vue index d1b26b9f7..7dfe84ce2 100644 --- a/apps/showcase/doc/nuxt/configuration/DirectivesDoc.vue +++ b/apps/showcase/doc/nuxt/configuration/DirectivesDoc.vue @@ -1,5 +1,6 @@When autoImport is disabled, use the include and exclude for manual registration.
The names of the directives to import and register are provided using the include property. When the value is ignored or set using the * alias, all of the directives are registered.
Similar to components, certain directives can be excluded and name registration can be customized.
diff --git a/apps/showcase/doc/nuxt/configuration/OptionsDoc.vue b/apps/showcase/doc/nuxt/configuration/OptionsDoc.vue index f6531d25f..11d593f6b 100644 --- a/apps/showcase/doc/nuxt/configuration/OptionsDoc.vue +++ b/apps/showcase/doc/nuxt/configuration/OptionsDoc.vue @@ -11,13 +11,27 @@ export default { return { code: { basic: ` -primevue: { - options: { - unstyled: true, - ripple: true, - inputVariant: 'filled' +import Aura from '@primevue/themes/aura'; + +export default defineNuxtConfig({ + modules: [ + '@primevue/nuxt-module' + ], + primevue: { + options: { + ripple: true, + inputVariant: 'filled', + theme: { + preset: Aura, + options: { + prefix: 'p', + darkModeSelector: 'system', + cssLayer: false + } + } + } } -} +}) ` } }; diff --git a/apps/showcase/doc/nuxt/configuration/UsePrimeVueDoc.vue b/apps/showcase/doc/nuxt/configuration/UsePrimeVueDoc.vue index 25205cc10..d1d8ddc5b 100644 --- a/apps/showcase/doc/nuxt/configuration/UsePrimeVueDoc.vue +++ b/apps/showcase/doc/nuxt/configuration/UsePrimeVueDoc.vue @@ -1,6 +1,6 @@Whether to install the PrimeVue plugin, defaults to true. Disable this option if you prefer to configure PrimeVue manually e.g. with a Nuxt plugin.
+The module installs the PrimeVue plugin by default. Disable this option if you prefer to configure PrimeVue manually e.g. with a Nuxt plugin.
- If you are using Tailwind CSS and prefer to have full control over the component styling, visit the Tailwind CSS Presets project to get you started with styling the components with - Tailwind utility classes. -