Everything text is typed into: inputs and textareas, the Field parts that give them labels, help and errors, groups that put icons and buttons inside one edge, and the one-time code.
Input and Textarea
One line of text, or several. value is written back as it is typed; what is not a prop (an id, a style) goes on the field itself.
Typestype is any of the browser's. Each field writes its state.
State
name "Ada Lovelace" · mail "ada@example.com" · password 10 characters · number 3
search "" · url "https://mote.dev" · tel "" · date 2026-11-15 · time 09:30
Sizessize: sm is 32 high, default 36, lg 40.
sm32
default36
lg40
All three share one state: type in any of them.
Statesinvalid sets aria-invalid and the red look; disabled dims it; type="file" is the browser's file field under the same face.
invalid
no file chosen
Eventsinput on every keystroke, change when the field is left, submit on Enter. A field with no value is one the page does not follow.
Heard
input 0 times · change ""
subscribed: nobody yet
TextareaSeveral lines. rows sets its height; it takes invalid and disabled as Input does, and grows by its corner.
The two under it show the same words.0 / 80
Label and Kbd
The name of a control, and the keys that reach it.
Labelfor is the control's id: a press on the words reaches the control. A Label may also hold its control, and then needs no for.
Nickname
summary on · terms not accepted · nickname ""
Kbd and KbdGroupA key, and keys that go together. They sit in text, in buttons and in fields.
Single keys
⌘⇧⌥⌃Esc⌘K
KbdGroupa chord
Ctrl+Shift+P
In a button
Open the command palette with ⌘K, move with ↑↓ and pick with ⏎.
Field
Labels, help and errors around a control. FieldSet and FieldGroup arrange several; orientation says which way one lies.
Label, description, errorinvalid goes on the Field (its label turns red) and on the control. FieldError takes words, or errors, a list.
Username
Choose a unique username for your account.
Port
Between 1024 and 65535.
Several errors at once
It has fewer than 8 characters.
It has no capital letter.
Orientationsvertical (as it comes), horizontal, and responsive: side by side, one over the other on a phone. disabled dims the whole field.
Newsletter
A letter a month, and no more.
Name
Beside its field; above it on a phone.
A field that is disabled
newsletter on · name "Evil Rabbit"
A set of choicesA FieldSet with a small legend (variant="label"); each choice is a horizontal Field whose words are a FieldTitle in a FieldContent.
environment kubernetes · gpu not reserved
A form that validatesEvery Field part in one form. Errors show once Create account has been pressed, and clear as each field is put right.
not sent yet
What was sent
Nothing yet. Fill the form in and press Create account.
Enter in any of the three fields sends the form too (submit=).
Input Group
A field with things on its ends, inside one edge. The group draws the edge and the focus ring; the field inside is bare.
Inline addonsalign="inline-start" (as it comes) and inline-end: icons, words and buttons before and after the text.
19 results
accordion
alert
avatar
badge
button
card
checkbox
dialog
and 11 more
https://
.com
$
USD
https://example.com · $12.00 · key hidden
Block addonsblock-start and block-end are rows over and under the field, here an InputGroupTextarea.
0/280
Nothing sent yet.
hello.mote
States and buttonsThe field takes invalid; InputGroup disabled=true dims the group. InputGroupButton: Button's variants (ghost unless said) in sizes xs, sm, icon-xs, icon-sm.
invalid (until it reads like an address)
disabled
busy, with a key hint
⌘K
xs and icon-sm
sm, outline and ghost
link and destructive
Last pressed
none yet
Input OTP
A one-time code, a character a box. One real field lies over the boxes, so typing, paste, Backspace and the arrow keys are the browser's own.
Six digitschange is called with the code once it is complete. Try 123456.
6 to go
value "" · change last gave ""
Patternspattern: digits (as it comes), alphanumeric, or any. What does not fit is dropped as it is typed or pasted.