Field

Label, helper, error, and layout primitives for form controls.

Quick Preview

Used for application status updates.

Composition

Use this public composition when building Field:

FieldSet
├── FieldLegend
└── FieldGroup
    └── Field
        ├── FieldLabel
        │   └── FieldLabelSupplement
        ├── FieldContent
        ├── FieldDescription
        └── FieldError

Usage

<Field>
  <FieldLabel withAsterisk>
    City/Areas
    <FieldLabelSupplement>(you can select multiple)</FieldLabelSupplement>
  </FieldLabel>
  <Input />
</Field>

Examples

Orientation

Use orientation to choose stacked fields, inline control rows, or responsive layouts.

Vertical layout stacks label, control, and help.

Horizontal layout pairs toggle controls with copy.

Props

Prop/APITypeDefaultDescription
orientation`"vertical""horizontal""responsive"`
size`"sm""md""lg"`
variant on FieldLegend`"legend""label"`"legend"
FieldLabelSupplementnative span props-Adds inline secondary label text that wraps naturally.
classNamestring-Local layout or spacing overrides.
native/root propsReact component props-Passed through to the underlying root or primitive.

Accessibility

  • Preserve the documented Field composition so labels, triggers, content, and controls remain connected.
  • Provide visible labels or accessible names for interactive controls.
  • Preserve the component-provided focus, keyboard, disabled, and invalid-state behavior.
  • Do not communicate state with color alone; include text, icons, or helper copy.

On this page