Input
The browser's own text input in the kit's field look, named by a label above it.
Usage
Examples
Appearances
appearance paints the field on the kit's one scale: solid, the default, soft on the grey wash, outline with only its line, and transparent with neither until it is hovered.
Sizes
size sets its height: sm 32px, base 40px (the default) or lg 48px, a Button's height at the same size, the large one written at 16px on a phone.
Border radius
borderRadius sets its corners on the kit's one scale: none, xs 4px, sm 6px, base 8px (the default), lg 12px, xl 16px, or full to round it.
With icon
start and end set an Icon inside the field, before the text or after it.
Text
Words in start or end sit around the value without being part of it, such as a prefix or a domain.
Button
A small Button in start or end sits inside the field, its corners one step inside the field's, holding an icon or words.
Select
A Select in start picks what the text beside it is in, its trigger drawn like the field's buttons and its list without a search.
Chips
chips holds what was picked as chips before the text being typed, each removed by its X through onChipRemove; Enter adds the text as another.
Clearable
clearable shows an X at its end once it holds text, which empties it and gives it the focus back; by default a field has none.
Password
type="password" puts an eye at the end of the field that shows or hides what was typed, and the field hides it again when its form is sent.
Disabled
disabled dims the input and stops it taking text, beside one as it is by default.
Invalid
error writes what is wrong under the input, turns its border to the destructive colour and describes it to screen readers, beside one without an error.
API Reference
Input
InputProps · components/Input/Input.types.tsIt also takes the props of <input>.