-
Notifications
You must be signed in to change notification settings - Fork 624
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(form-group): add
size
prop and theme options
- Loading branch information
Showing
4 changed files
with
187 additions
and
420 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 |
---|---|---|
|
@@ -132,6 +132,25 @@ 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.' | ||
code: >- | ||
|
||
<UInput size="xl" placeholder="[email protected]" icon="i-heroicons-envelope" /> | ||
--- | ||
|
||
#default | ||
:u-input{placeholder="[email protected]" icon="i-heroicons-envelope" size="xl"} | ||
:: | ||
## Props | ||
|
||
:component-props | ||
|
Oops, something went wrong.