Field

A component that provides labelling and validation for form controls.

Usage

API Reference

Field

Root component. Includes flex column layout.

FieldLabel

Label for the field.

FieldItem

Container for field items.

FieldDescription

Description text for the field. Includes muted foreground color.

FieldError

Error message for the field. Includes destructive foreground color.

FieldControl

Use this to register a custom or third-party control with the field context so it participates in labelling, validation, and error state.

Note that Textarea does not require FieldControl — it integrates with Field internally the same way Input and other built-in controls do.

FieldValidity

Exposes the field's validity state for conditional rendering.

Examples

Required Field

Disabled Field

With Error

Enter an invalid email address and press enter to see the error.

With Validity

Input Group

Autocomplete Field

Combobox Field

Combobox Multiple Field

Textarea Field

Select Field

Checkbox Field

Checkbox Group Field

Radio Group Field

Switch Field

Slider Field

Number Field

Complete Form Example