Skip to content
Components

Form

Form wrapper that coordinates field validation and returned errors.

Composition

Validated form

  • <Form>
    • <Field>
      • <FieldLabel />
      • <FieldControl>
        • render prop
          • <Input />
        </FieldControl>
      • <FieldError />
      </Field>
    • <Button />
    </Form>

Installation

The Control UI source installs this primitive from src/registry/sources/control-ui/ui/form.tsx.

Registry command
See registry manifest

Raw code

Primary installed source

src/registry/sources/control-ui/ui/form.tsx