Field
FREELabel, Field, FieldDescription and FieldError to compose accessible form fields.
Installation
Terminal
npx @bloxa/cli add field
# or: npx shadcn@latest add @bloxa/fieldPackages installed automatically: radix-ui
Examples
Label, hint and error
The name shown on invoices.
Enter a valid email address.
API reference
Every component also accepts the props of the element it renders.
Field
Stacks label, control, hint and error.
FieldError
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | Renders nothing when empty. |