mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 09:22:34 +00:00
Add case doc
This commit is contained in:
parent
bedb067e4e
commit
b5a7675978
3 changed files with 53 additions and 6 deletions
39
doc/theming/styled/CaseStyleDoc.vue
Normal file
39
doc/theming/styled/CaseStyleDoc.vue
Normal file
|
@ -0,0 +1,39 @@
|
|||
<template>
|
||||
<DocSectionText v-bind="$attrs">
|
||||
<p>
|
||||
Tokens are described with the dot separator e.g. <i>primary.color</i>, <i>form.field.background</i> or <i>checkbox.icon.checked.color</i>. At preset configuration, camel case and object property are used when mapping the dot separator.
|
||||
The following is an example from the checkbox component tokens to represent the <i>checkbox.icon.checked.color</i>, all alternatives have the same result.
|
||||
</p>
|
||||
</DocSectionText>
|
||||
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
code: {
|
||||
basic: `
|
||||
export default {
|
||||
iconCheckedColor: //...,
|
||||
}
|
||||
|
||||
export default {
|
||||
icon: {
|
||||
checkedColor: //...
|
||||
}
|
||||
}
|
||||
|
||||
export default {
|
||||
icon: {
|
||||
checked: {
|
||||
color: //...
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue