Input

A field for one line of text, with text area, password, search and one-time code fields alongside it.

Anotomy

Structure of the input and its four relatives, and how their parts are composed. These are their semantic parts, so they are also what the classNames and styles objects accept. Each block numbers its own parts.

Input

Input anotomy
NameDescription
1rootThe field's box: border, background, radius and padding. variant, size and status change it here.
2prefixThe node from prefix, before the text. Usually an icon or a unit.
3inputThe real <input>, which takes the free width.
4suffixThe trailing area. It holds the clear button, the count and the node from suffix, in that order.
5clearThe button that empties the field, drawn when allowClear is set and there is a value.
6countThe character count, drawn when showCount is set. With maxLength it reads as used out of allowed.

Input.TextArea

Input.TextArea anotomy
NameDescription
1rootThe field's box. autoSize lets it grow with the text.
2textareaThe real <textarea>.
3clearThe button that empties the field, drawn when allowClear is set and there is a value.
4countThe character count under the field, from showCount or count.

Input.Password

Input.Password anotomy
NameDescription
1rootThe field's box.
2prefixThe node from prefix, before the value.
3inputThe real <input type="password">, which shows dots until the value is revealed.
4suffixThe trailing area holding the eye button from visibilityToggle. iconRender replaces its icon.
5clearThe button that empties the field, drawn when allowClear is set.

Input.Search

Input.Search anotomy
NameDescription
1rootThe field and the search button together.
2prefixThe node from prefix, before the text.
3inputThe real <input>.
4clearThe button that empties the field, drawn when allowClear is set.
5countThe character count, drawn when showCount is set.
6suffixThe node from suffix, at the end of the field.
7button.rootThe search button, from enterButton.
8button.iconThe button's icon, a spinner while loading is set.
9button.contentThe button's text, when enterButton is a string.

Input.OTP

Input.OTP anotomy
NameDescription
1rootThe row of cells.
2inputOne cell, a real <input> for one character. length sets how many, and mask hides what is typed.
3separatorThe node between two cells, from separator.