primevue-mirror/doc/vite/UnstyledModeDoc.vue

39 lines
1.3 KiB
Vue
Raw Normal View History

2023-12-26 18:28:43 +00:00
<template>
<DocSectionText v-bind="$attrs">
2024-04-01 09:54:05 +00:00
<p>In unstyled mode, the components do not include any CSS so you'd need to style the components on your end. 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 />
2024-04-01 09:54:05 +00:00
<p>If you are using Tailwind CSS, see the <a href="https://tailwind.primevue.org/vite/">Tailwind CSS Presets</a> project to get you started with styling the components with Tailwind utility classes.</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: `
import { createApp } from "vue";
2024-04-01 09:54:05 +00:00
import PrimeVueUnstyled from "primevue/config";
2023-12-26 18:28:43 +00:00
const app = createApp(App);
2024-04-01 09:54:05 +00:00
app.use(PrimeVueUnstyled);
2023-12-26 18:28:43 +00:00
`
},
code2: {
basic: `
import { createApp } from 'vue';
2024-04-01 09:54:05 +00:00
import PrimeVueUnstyled from 'primevue/config';
2024-01-30 08:16:35 +00:00
import Lara from '@/presets/lara'; //import preset
2023-12-26 18:28:43 +00:00
const app = createApp(App);
2024-04-01 09:54:05 +00:00
app.use(PrimeVueUnstyled, {
2024-01-30 08:16:35 +00:00
pt: Lara //apply preset
2023-12-26 18:28:43 +00:00
});
`
}
};
}
};
</script>