Form Components
Form wiring model
This repository uses two patterns:
TextInputwith directregisterprops from React Hook Form.- Most other fields (
Select,RadioGroup,Combobox,DateRangePicker, etc.) withControlleranduseFormContextinside the shared component.
Because of this, complex fields should be rendered under:
Common field inventory
TextInputCheckboxMultiCheckboxRadioGroupSelectComboboxAsyncMultiComboboxSwitchPinInputDateSelectorDateRangePickerDateRangeSelector
Validation strategy
- Field and cross-field rules live in feature schema files (
*.schema.ts). - Error messages are read from i18n keys when applicable.
- API field errors can be mapped back to form fields in handlers.