Field

Form

Composable form field wrapper providing label, helper text, error message orchestration, and validation state management

Field

Form field primitives with labels, hints, errors, descriptions and layout helpers. Works with inputs, textareas, selects and custom controls.

Props API

Use the Field component with props like label, description, hint, error, required and showOptional for fast inline forms.

We'll never share your email.

Must be at least 8 characters long

Choose a unique username

Composable API

For complex forms, compose Field, FieldLabel, FieldDescription, FieldHint and FieldError manually. This matches your recommended setup with live validation.

We'll never share your email with anyone else.

Must be at least 8 characters long

Maximum 500 characters.

FieldSet & FieldGroup

Use FieldSet to group related fields with a legend and FieldGroup to control grid layout, spacing and orientation.

Personal information

Your primary email address

Preferences

Select your country of residence

Enter your 16-digit card number

Choose your preferred color theme

Receive updates about new features and promotions

Usage Guidelines

When to Use

  • Form field layouts
  • Input with labels
  • Validation messages

Accessibility

  • Proper label association
  • Error messages linked with aria-describedby

Performance

  • No wrapper overhead
  • Passes props efficiently

Common Mistakes

  • Placeholder as only label
  • Helper text that's actually an error

Frequently Asked Questions

Field is a wrapper that provides label, helper text, error message orchestration, and validation state.
Yes, Field automatically shows required indicators when the input is required.

View on GitHub

See the full source code on GitHub