Components
Components
Form
Accessible form container for native and custom field validation.
newfree
pnpm add @komponents/uiCanonical TypeScript source · tree-shakeable subpathsThin wrapper around React Aria Form. Compose Komponents fields inside and use
native constraint validation or validationErrors for server feedback.
Usage
Notes
- No React Hook Form or Formik dependency
- Fields keep their own labels, descriptions, and errors
- Use
validationErrorsfor server-side messages keyed by field name
Accessibility
- Landmark
formrole when labeled - Focus moves to the first invalid field on failed submit