2023-03-16 08:11:34 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
2023-12-07 08:50:44 +00:00
|
|
|
<p>
|
|
|
|
PrimeVue plugin is required to be installed with the <i>use</i> function to set up the default <NuxtLink to="/theming">configuration</NuxtLink>. If you are using <NuxtLink to="/theming">Nuxt</NuxtLink>, this step is not required as our
|
|
|
|
nuxt module handles it.
|
|
|
|
</p>
|
2023-03-16 08:11:34 +00:00
|
|
|
</DocSectionText>
|
|
|
|
<DocSectionCode :code="code" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
code: {
|
2023-09-22 12:54:14 +00:00
|
|
|
basic: `
|
|
|
|
import { createApp } from 'vue';
|
2023-03-16 08:11:34 +00:00
|
|
|
import PrimeVue from 'primevue/config';
|
|
|
|
|
|
|
|
const app = createApp(App);
|
2023-09-22 12:54:14 +00:00
|
|
|
app.use(PrimeVue);
|
|
|
|
`
|
2023-03-16 08:11:34 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|