primevue-mirror/doc/theming/styled/utils/UseThemeDoc.vue

28 lines
612 B
Vue
Raw Normal View History

2024-03-30 23:15:56 +00:00
<template>
<DocSectionText v-bind="$attrs">
<p>Replaces the theme including the base and the preset such as from PrimeOne to Material. Note that the built-in Material theme is under development.</p>
</DocSectionText>
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
</template>
<script>
export default {
data() {
return {
code: {
basic: `
import { useTheme } from 'primevue/themes';
const changeTheme() {
useTheme({
base: MaterialDesign,
preset: M3
});
}
`
}
};
}
};
</script>