The Field component provides a complete form field structure with label, input control, description, validation, and error messaging.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/yogendrarana/craftdotui/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Usage
Components
Field (Root)
Field name for form submission.
Disable the entire field.
Custom validation function.
FieldLabel
Labels the field control.FieldControl
Size variant from Input component.
Visual variant from Input component.
FieldDescription
Help text for the field.FieldError
Displays validation error messages.FieldValidity
Provides programmatic access to validation state.Examples
Complete Field
With Validation
Disabled Field
Accessibility
- Built on @base-ui/react for ARIA support
- Automatic label association
- Error announcements to screen readers
- Proper disabled states
- Validation feedback