Components / Inputs

Form nativelite

Collects its fields by name and fires submit with their values once every check passes (a submit Button or Enter submits).

Children
many
Loading the renderer…
Form rendered by the React renderer on Web
Web React
Form rendered by the SwiftUI renderer on iOS
iOS SwiftUI
Form rendered by the Compose renderer on Android
Android Compose
Form rendered by the gpui renderer on Desktop
Desktop gpui

View exponential-ui-form, painted by each native renderer.

disabled
busy
summary
PropTypeDefaultDescription
namerequiredstring–The form's key in the submit payload.
disabledbindbooleanfalseMakes every field inert.
busybindbooleanfalseShows the submit pending and refuses another submit.
summarybooleanfalseAlso lists every failed check above the fields.
NameKind
on.submitevent: runs an action
on.invalidevent: runs an action
on.changeevent: runs an action
Role
form
Semantics
form
KeysAction
Enter in a single-line fieldsubmit
–A failed submit focuses the first invalid field and announces invalidFields
Recipe parts
Form/rootForm/summary
Keyed by
disabledbusy:hover:pressed:focus:disabled:checked:open:selected:invalid:dragover

Themes · Write a theme