alepha@docs:~/docs/framework/packages/alepha/react$
cat form.md | pretty1 min read
Last commit:
#Alepha - React Form
#Installation
Part of the alepha package. Import from alepha/react/form.
npm install alepha
#Overview
Type-safe forms with validation.
Features:
- Form state management
- Zod schema validation
- Field-level error handling
- Submit handling with loading state
- Form reset
#API Reference
#React Hooks
useFieldValue- Hook to subscribe to a single form field's value.useForm- Custom hook to create a form with validation and field management.useFormQuerySync- Two-way bind auseForminstance to the URL query params, keyeduseFormState- Tracks whicheverformthe caller currently passes in, not only the oneuseFormValues- Hook to subscribe to all form values.