Skip to content

Form

Collects its fields by name and fires submit with their values once every check passes.

Group: Inputs · Kind: native · in the lite catalog

example
disabled · true
busy · true

Open in the playground

The same specimen painted by React, SwiftUI, Compose and gpui.

exponential-ui-form on Web
exponential-ui-form on iOS
exponential-ui-form on Android
exponential-ui-form on Desktop
summary
Prop Type Required Bindable Description
name string yes – The form’s key in the submit payload.
disabled boolean – yes Makes every field inert. Default false.
busy boolean – yes Shows the submit pending and refuses another submit. Default false.
summary boolean – – Also lists every failed check above the fields. Default false.
  • on.submit: runs an action
  • on.invalid: runs an action
  • on.change: runs an action

None.

many

No basic catalog component maps here.

A native component: every renderer paints it directly.

Role: form

form

Keys Action
Enter in a single-line field submit
– A failed submit focuses the first invalid field and announces invalidFields

Recipe parts: Form/root Form/summary

Keyed by: disabled busy :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover

Themes · Write a theme

FieldGroup · FormActions · Input · Textarea · NumberField · Checkbox · Radio · ChoiceTiles