Field

Last updated: October 14, 2026

Accessible field compound with label, description, control, and error — powered by Base UI Field.

Installation

npx smoothui-cli add field

Features

Base UI Field compound for labeling and validating form controls. Vertical stack with label, description, styled control, and error messaging.

Usage

Compose Field, FieldLabel, FieldControl, FieldDescription, and FieldError. The root wires ids and aria-* associations automatically.

Accessibility

ARIA Attributes

AttributeElementPurpose
for / idLabel ↔ ControlAssociates the label with the control
aria-describedbyControlLinks description and error messages
aria-invalidControlMarks the control when the field is invalid

Props

FieldProps

FieldLabelProps

FieldControlProps

FieldDescriptionProps

FieldErrorProps

Powered by

base-ui