mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Initiated docs and default preset update
This commit is contained in:
parent
36cd4c4692
commit
d80a18c052
26 changed files with 307 additions and 462 deletions
42
doc/theming/unstyled/ThemeDoc.vue
Normal file
42
doc/theming/unstyled/ThemeDoc.vue
Normal file
|
@ -0,0 +1,42 @@
|
|||
<template>
|
||||
<DocSectionText v-bind="$attrs">
|
||||
<p>
|
||||
An unstyled theme is basically a global <i>pt</i> configuration so that it can be defined only once from a single location, still a particular component can override a global configuration since the <i>pt</i> props of a component and the
|
||||
global setting is merged with component having higher precedencee.
|
||||
</p>
|
||||
</DocSectionText>
|
||||
|
||||
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
code: {
|
||||
basic: `
|
||||
import { createApp } from "vue";
|
||||
import PrimeVue from "primevue/config";
|
||||
const app = createApp(App);
|
||||
|
||||
app.use(PrimeVue, {
|
||||
pt: {
|
||||
button: {
|
||||
root: { class: 'bg-teal-500 hover:bg-teal-700 cursor-pointer text-white p-3 border-round border-none flex gap-2' },
|
||||
label: 'text-white font-bold text-xl', // OR { class: 'text-white font-bold text-xl' }
|
||||
icon: 'text-white text-2xl'
|
||||
},
|
||||
panel: {
|
||||
header: 'bg-primary border-primary',
|
||||
content: 'border-primary text-lg text-primary-700',
|
||||
title: 'bg-primary text-xl',
|
||||
toggler: 'bg-primary hover:bg-primary-reverse'
|
||||
}
|
||||
}
|
||||
});
|
||||
`
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue