2024-07-03 10:06:06 +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>
|
2025-01-27 22:30:21 +00:00
|
|
|
<p>Install the <i>@primeuix/themes</i> add-on package as the themes are not included in PrimeVue by default.</p>
|
2024-07-03 10:06:06 +00:00
|
|
|
<DocSectionCode :code="code1" hideToggleCode hideStackBlitz />
|
|
|
|
<p>Configure the module to use a theme like Aura.</p>
|
|
|
|
<DocSectionCode :code="code2" importCode hideToggleCode hideStackBlitz />
|
|
|
|
</DocSectionText>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
code1: {
|
|
|
|
basic: `
|
|
|
|
# Using npm
|
2025-01-27 22:30:21 +00:00
|
|
|
npm install @primeuix/themes
|
2024-07-03 10:06:06 +00:00
|
|
|
|
|
|
|
# Using yarn
|
2025-01-27 22:30:21 +00:00
|
|
|
yarn add @primeuix/themes
|
2024-07-03 10:06:06 +00:00
|
|
|
|
|
|
|
# Using pnpm
|
2025-01-27 22:30:21 +00:00
|
|
|
pnpm add @primeuix/themes
|
2024-07-03 10:06:06 +00:00
|
|
|
`
|
|
|
|
},
|
|
|
|
code2: {
|
|
|
|
basic: `
|
2025-01-27 22:30:21 +00:00
|
|
|
import Aura from '@primeuix/themes/aura';
|
2024-07-03 10:06:06 +00:00
|
|
|
|
|
|
|
export default defineNuxtConfig({
|
|
|
|
modules: [
|
|
|
|
'@primevue/nuxt-module'
|
|
|
|
],
|
|
|
|
primevue: {
|
|
|
|
options: {
|
|
|
|
theme: {
|
|
|
|
preset: Aura
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|