Skip to content

Commit

Permalink
docs(ComponentCard): prevent label prop as select (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
eduayme authored Aug 28, 2023
1 parent 8d0ce47 commit 4d77f66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/components/content/ComponentCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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}`"
Expand Down
2 changes: 1 addition & 1 deletion docs/content/3.forms/9.form-group.md
Original file line number Diff line number Diff line change
Expand Up @@ -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="[email protected]" icon="i-heroicons-envelope" />
Expand Down

1 comment on commit 4d77f66

@vercel
Copy link

@vercel vercel bot commented on 4d77f66 Aug 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./

ui-nuxtlabs.vercel.app
ui.nuxtlabs.com
ui-git-dev-nuxtlabs.vercel.app

Please sign in to comment.