docs(ComponentExample): improve options handling

This commit is contained in:
Benjamin Canac
2024-09-27 15:37:15 +02:00
parent 6f0b7309c9
commit d2e075bb4a
2 changed files with 46 additions and 8 deletions

View File

@@ -234,7 +234,7 @@ const { data: ast } = await useAsyncData(`component-code-${name}-${hash({ props:
color="gray"
variant="soft"
class="rounded rounded-l-none min-w-12"
:search="false"
:search-input="false"
:class="[option.name.toLowerCase().endsWith('color') && 'pl-6']"
:ui="{ itemLeadingChip: 'size-2' }"
@update:model-value="setComponentProp(option.name, $event)"