Skip to content

Form Field

Composes label, control, help, and error content into an accessible field.

Status
Beta
Distribution
Source via shadcn

Design

Functional preview

Loading functional preview…
Explore anatomy and visual states

Anatomy

  1. Label
  2. Control slot
  3. Optional description
  4. Optional error message

Variants and states

  • error
  • no-helper
  • no-label