2024-05-27 09:56:08 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
|
|
|
<p>Styled mode provides pre-skinned components, default theme is Aura with emerald as the primary color. See the <NuxtLink to="/theming/styled">styled mode</NuxtLink> documentation for details.</p>
|
2024-06-12 22:42:21 +00:00
|
|
|
<p>Install the <i>@primevue/themes</i> add-on package as the themes are not included in PrimeVue by default.</p>
|
|
|
|
<DocSectionCode :code="code1" hideToggleCode hideStackBlitz />
|
|
|
|
<p>Configure PrimeVue to use a theme like Aura.</p>
|
|
|
|
<DocSectionCode :code="code2" importCode hideToggleCode hideStackBlitz />
|
2024-05-27 09:56:08 +00:00
|
|
|
</DocSectionText>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
2024-06-12 22:42:21 +00:00
|
|
|
code1: {
|
|
|
|
basic: `
|
|
|
|
# Using npm
|
|
|
|
npm install @primevue/themes@4.0.0-rc.1
|
|
|
|
|
|
|
|
# Using yarn
|
|
|
|
yarn add @primevue/themes@4.0.0-rc.1
|
|
|
|
|
|
|
|
# Using pnpm
|
|
|
|
pnpm add @primevue/themes@4.0.0-rc.1
|
|
|
|
`
|
|
|
|
},
|
|
|
|
code2: {
|
2024-05-27 09:56:08 +00:00
|
|
|
basic: `
|
|
|
|
import { createApp } from 'vue';
|
|
|
|
import PrimeVue from 'primevue/config';
|
2024-06-11 12:21:12 +00:00
|
|
|
import Aura from '@primevue/themes/aura';
|
2024-05-27 09:56:08 +00:00
|
|
|
|
|
|
|
const app = createApp(App);
|
|
|
|
app.use(PrimeVue, {
|
|
|
|
theme: {
|
|
|
|
preset: Aura
|
|
|
|
}
|
|
|
|
});
|
|
|
|
`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|