primevue-mirror/apps/showcase/doc/nuxt/configuration/OptionsDoc.vue

41 lines
948 B
Vue
Raw Permalink Normal View History

2023-10-15 20:57:44 +00:00
<template>
<DocSectionText v-bind="$attrs">
2024-05-27 09:13:32 +00:00
<p>Main configuration settings of PrimeVue, refer to the <PrimeVueNuxtLink to="/configuration">configuration</PrimeVueNuxtLink> documentation for details.</p>
2023-10-15 20:57:44 +00:00
</DocSectionText>
2024-01-30 08:16:35 +00:00
<DocSectionCode :code="code" importCode hideToggleCode hideStackBlitz />
2023-10-15 20:57:44 +00:00
</template>
<script>
export default {
data() {
return {
code: {
basic: `
2024-07-03 10:06:06 +00:00
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
}
}
}
2023-10-15 20:57:44 +00:00
}
2024-07-03 10:06:06 +00:00
})
2023-10-15 20:57:44 +00:00
`
}
};
}
};
</script>