Usage
Sizing
When displaying an input in a space-constrained location, you can pass small
.
Dark mode
To display inputs on a dark background, pass darkMode
.
Errors
When displaying an error message, pass error
to highlight the input in red.
Labels
Most inputs should also provide a label for accessibility. Import <Label>
.
Placeholders
Placeholder text may be used to provide an example of input to the user.
Disabled
API Reference
Inherits properties from HTMLInputElement
.
Prop | Type | Default |
className | string | |
darkMode | boolean | false |
error | boolean | false |
small | boolean | false |