primevue-mirror/doc/nuxt/UnstyledModeDoc.vue

50 lines
1.4 KiB
Vue
Raw Normal View History

2023-12-26 18:28:43 +00:00
<template>
<DocSectionText v-bind="$attrs">
<p>
Unstyled mode is disabled by default for all components. Set <i>unstyled</i> as true to enable it globally using a module configuration. Visit the <NuxtLink to="/unstyled">Unstyled mode</NuxtLink> documentation for more information and
examples.
</p>
2024-01-30 08:16:35 +00:00
<DocSectionCode :code="code1" hideToggleCode importCode hideStackBlitz />
2023-12-26 18:28:43 +00:00
<p>In unstyled mode, you'd need to style the components on your end. If you are using Tailwind CSS, see the <a href="https://tailwind.primevue.org/nuxt/">Tailwind CSS Presets</a> project to get you started.</p>
2024-01-30 08:16:35 +00:00
<DocSectionCode :code="code2" hideToggleCode importCode hideStackBlitz />
2023-12-26 18:28:43 +00:00
</DocSectionText>
</template>
<script>
export default {
data() {
return {
code1: {
basic: `
export default defineNuxtConfig({
modules: [
'nuxt-primevue'
],
primevue: {
options: {
unstyled: true
}
2023-12-26 18:28:43 +00:00
}
})
`
},
code2: {
basic: `
import path from 'path';
export default defineNuxtConfig({
modules: [
'nuxt-primevue'
],
primevue: {
unstyled: true,
2024-01-30 08:16:35 +00:00
importPT: { from: path.resolve(__dirname, './presets/lara/') } //import and apply preset
2023-12-26 18:28:43 +00:00
}
})
`
}
};
}
};
</script>