-
Notifications
You must be signed in to change notification settings - Fork 620
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(FormGroup): add
size
prop and theme options (#391)
Co-authored-by: Benjamin Canac <[email protected]>
- Loading branch information
1 parent
b0440f8
commit d2a8a07
Showing
3 changed files
with
55 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -134,6 +134,32 @@ You can also use the `error` prop as a boolean to mark the form element as inval | |
The `error` prop will automatically set the `color` prop of the form element to `red`. | ||
:: | ||
|
||
### Size | ||
|
||
Use the `size` prop to change the size of the label and the form element. | ||
|
||
::component-card | ||
--- | ||
props: | ||
size: 'xl' | ||
label: 'Email' | ||
hint: 'Optional' | ||
description: "We'll only use this for spam." | ||
help: 'We will never share your email with anyone else.' | ||
excludedProps: | ||
- label | ||
- hint | ||
- description | ||
- help | ||
code: >- | ||
|
||
<UInput placeholder="[email protected]" icon="i-heroicons-envelope" /> | ||
--- | ||
|
||
#default | ||
:u-input{placeholder="[email protected]" icon="i-heroicons-envelope"} | ||
:: | ||
|
||
## Props | ||
|
||
:component-props | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d2a8a07
There was a problem hiding this comment.
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-git-dev-nuxtlabs.vercel.app
ui.nuxtlabs.com