Form
A native form element with consolidated error handling.
API reference
Form is composed together with Field. Import the components and place them together:
Anatomy
import { Field } from '@anchor-ui/react/field';
import { Form } from '@anchor-ui/react/form';
<Form>
<Field.Root>
<Field.Label />
<Field.Control />
<Field.Error />
</Field.Root>
</Form>| Prop | Type | Default | |
|---|---|---|---|
errors |
|
| |
onClearErrors |
|
| |
className |
|
| |
render |
|
|