diff --git a/doc/vite/StyledModeDoc.vue b/doc/vite/StyledModeDoc.vue index 19e9a5943..ee862c7cb 100644 --- a/doc/vite/StyledModeDoc.vue +++ b/doc/vite/StyledModeDoc.vue @@ -1,16 +1,7 @@ @@ -18,24 +9,13 @@ export default { data() { return { - code1: { + code: { basic: ` -//in main.js -import 'primevue/resources/themes/aura-light-green/theme.css' -` - }, - code2: { - basic: ` -/* Order */ -@layer reset, primevue; +import { createApp } from 'vue'; +import PrimeVueStyled from 'primevue/styled'; -/* Reset CSS */ -@layer reset { - button, - input { - /* CSS to Reset */ - } -} +const app = createApp(App); +app.use(PrimeVueStyled); ` } }; diff --git a/doc/vite/UnstyledModeDoc.vue b/doc/vite/UnstyledModeDoc.vue index c82feb73b..efc01a442 100644 --- a/doc/vite/UnstyledModeDoc.vue +++ b/doc/vite/UnstyledModeDoc.vue @@ -1,11 +1,8 @@ @@ -17,23 +14,20 @@ export default { code1: { basic: ` import { createApp } from "vue"; -import PrimeVue from "primevue/config"; +import PrimeVueUnstyled from "primevue/config"; const app = createApp(App); -app.use(PrimeVue, { - unstyled: true -}); +app.use(PrimeVueUnstyled); ` }, code2: { basic: ` import { createApp } from 'vue'; -import PrimeVue from 'primevue/config'; +import PrimeVueUnstyled from 'primevue/config'; import Lara from '@/presets/lara'; //import preset const app = createApp(App); -app.use(PrimeVue, { - unstyled: true, +app.use(PrimeVueUnstyled, { pt: Lara //apply preset }); ` diff --git a/doc/vite/UsageDoc.vue b/doc/vite/UsageDoc.vue index 0683096eb..689d913ff 100644 --- a/doc/vite/UsageDoc.vue +++ b/doc/vite/UsageDoc.vue @@ -1,6 +1,9 @@