Add case doc

This commit is contained in:
Cagatay Civici 2024-04-01 10:55:51 +03:00
parent bedb067e4e
commit b5a7675978
3 changed files with 53 additions and 6 deletions

View 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>