Input
One line of text. It shares its shell with Textarea and Select, so the three line up and a change to the focus treatment lands on all of them at once.
Reach for it
One line of free text: a name, a reference, an amount.
Not for
A value with a known set. That is a Select, a Radio group or a Combobox.
Sizes
Medium is the default. Small belongs in a dense row such as a table toolbar, and large in a short form that is the whole point of the page. Wrap it in a Field to give it a label.
Adornments
A unit, a currency or a symbol beside the value, inside the field's own padding. An adornment is inert by construction: it never takes focus and never swallows a click meant for the field. Anything meant to be pressed is a Button beside the field.
API reference
Input
| Prop | Type | Default | Description |
|---|---|---|---|
| size | 'small' | 'medium' | 'large' | medium | |
| ref | Ref<HTMLInputElement> | - | React 19 passes `ref` as an ordinary prop, so `forwardRef` is dead weight. It also types cleanly under the consumers' compilers, where `forwardRef(...)` did not. |
| startAdornment | ReactNode | - | A unit, a currency or a symbol beside the value. Inert by construction: an adornment is not a control, so it never takes focus and never swallows a click meant for the field. Anything meant to be pressed is a Button beside the field. |
| endAdornment | ReactNode | - |
Also takes the standard attributes of a input, minus className, style and size.