30 lines
579 B
Vue
30 lines
579 B
Vue
|
<template>
|
||
|
<DocSectionText v-bind="$attrs">
|
||
|
<p>Configure PrimeVue to use a theme like Aura.</p>
|
||
|
<DocSectionCode :code="code" importCode hideToggleCode hideStackBlitz />
|
||
|
</DocSectionText>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
code: {
|
||
|
basic: `
|
||
|
import { createApp } from 'vue';
|
||
|
import PrimeVue from 'primevue/config';
|
||
|
import Aura from '@primevue/themes/aura';
|
||
|
|
||
|
const app = createApp(App);
|
||
|
app.use(PrimeVue, {
|
||
|
theme: {
|
||
|
preset: Aura
|
||
|
}
|
||
|
});
|
||
|
`
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
};
|
||
|
</script>
|