primevue-mirror/apps/showcase/doc/nuxt/ThemeDoc.vue

34 lines
622 B
Vue
Raw Normal View History

2023-12-26 18:28:43 +00:00
<template>
<DocSectionText v-bind="$attrs">
2024-10-27 10:54:37 +00:00
<p>Configure the module to use a theme like Aura.</p>
<DocSectionCode :code="code" importCode hideToggleCode hideStackBlitz />
2023-12-26 18:28:43 +00:00
</DocSectionText>
</template>
<script>
export default {
data() {
return {
2024-10-27 10:54:37 +00:00
code: {
2023-12-26 18:28:43 +00:00
basic: `
2024-10-27 10:54:37 +00:00
import Aura from '@primevue/themes/aura';
2023-12-26 18:28:43 +00:00
export default defineNuxtConfig({
modules: [
2024-06-12 22:42:21 +00:00
'@primevue/nuxt-module'
2023-12-26 18:28:43 +00:00
],
primevue: {
2024-10-27 10:54:37 +00:00
options: {
theme: {
preset: Aura
}
}
2023-12-26 18:28:43 +00:00
}
})
`
}
};
}
};
</script>