docs(ComponentCard): prevent label prop as select (#568)

This commit is contained in:
Eduard Aymerich
2023-08-28 15:10:17 +02:00
committed by Benjamin Canac
parent b901222c4b
commit 11980a3c9c
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@
class="justify-center" class="justify-center"
/> />
<USelectMenu <USelectMenu
v-else-if="prop.type === 'string' && prop.options.length" v-else-if="prop.type === 'string' && prop.options.length && prop.name !== 'label'"
v-model="componentProps[prop.name]" v-model="componentProps[prop.name]"
:options="prop.options" :options="prop.options"
:name="`prop-${prop.name}`" :name="`prop-${prop.name}`"

View File

@@ -15,8 +15,8 @@ Use the FormGroup component around an [Input](/forms/input), [Textarea](/forms/t
::component-card ::component-card
--- ---
props: props:
name: 'email'
label: 'Email' label: 'Email'
name: 'email'
code: >- code: >-
<UInput placeholder="you@example.com" icon="i-heroicons-envelope" /> <UInput placeholder="you@example.com" icon="i-heroicons-envelope" />