feat(components): allow override of sizes through ui prop

This commit is contained in:
Benjamin Canac
2024-07-10 12:57:34 +02:00
parent db30284e7a
commit 6aa0ea306f
13 changed files with 21 additions and 21 deletions

View File

@@ -77,7 +77,7 @@ const ui = computed(() => tooltip({
<span v-if="text" :class="ui.text({ class: props.ui?.text })">{{ text }}</span>
<span v-if="kbds?.length" :class="ui.kbds({ class: props.ui?.kbds })">
<UKbd v-for="(kbd, index) in kbds" :key="index" :size="(ui.kbdsSize() as KbdProps['size'])" v-bind="typeof kbd === 'string' ? { value: kbd } : kbd" />
<UKbd v-for="(kbd, index) in kbds" :key="index" :size="((props.ui?.kbdsSize || ui.kbdsSize()) as KbdProps['size'])" v-bind="typeof kbd === 'string' ? { value: kbd } : kbd" />
</span>
</slot>