label | string | - | |
|
description | string | - | |
|
error | string | - | |
|
success | string | - | Green border, a check icon & this message in place of description. |
Green border, a check icon & this message in place of description. |
icon | ReactNode | - | |
|
iconPosition | leading | trailing | leading | Which end icon sits at. |
Which end icon sits at. |
iconInteractive | boolean | false | Lets icon receive pointer events, for an inline button, a clear or reveal toggle, instead of a decorative glyph. |
Lets icon receive pointer events, for an inline button, a clear or reveal toggle, instead of a decorative glyph. |
prefixNode | ReactNode | - | |
|
suffix | ReactNode | - | Static content flush against the control's trailing edge, like a domain suffix. |
| Static content flush against the control's trailing edge, like a domain suffix. |
placeholder | string | - | Placeholder text. |
| Placeholder text. |
type | string | text | |
|
revealable | boolean | false | |
|
invalid | boolean | false | |
|
size | sm | md | lg | md | Height and width of the control. |
| Height and width of the control. |
shape | none | rounded | pill | rounded | |
|
disabled | boolean | false | Blocks interaction and dims the whole field, label included. |
| Blocks interaction and dims the whole field, label included. |
required | boolean | false | Appends a red asterisk to the label & sets the control's native required attribute. |
Appends a red asterisk to the label & sets the control's native required attribute. |
className | string | - | |
|
focus | boolean | string | true | |
|