mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-18 05:58:07 +01:00
docs(ComponentCard): prevent label prop as select (#568)
This commit is contained in:
committed by
Benjamin Canac
parent
b901222c4b
commit
11980a3c9c
@@ -11,7 +11,7 @@
|
||||
class="justify-center"
|
||||
/>
|
||||
<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]"
|
||||
:options="prop.options"
|
||||
:name="`prop-${prop.name}`"
|
||||
|
||||
@@ -15,8 +15,8 @@ Use the FormGroup component around an [Input](/forms/input), [Textarea](/forms/t
|
||||
::component-card
|
||||
---
|
||||
props:
|
||||
name: 'email'
|
||||
label: 'Email'
|
||||
name: 'email'
|
||||
code: >-
|
||||
|
||||
<UInput placeholder="you@example.com" icon="i-heroicons-envelope" />
|
||||
|
||||
Reference in New Issue
Block a user