FormField
Form field wrapper with label, description, error message, and required indicator.
Preview
Usage
import { FormField } from '@ramtt/ui'
<FormField label="Email" required error="Invalid email">
<Input type="email" />
</FormField>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| label* | string | — | Field label |
| required | boolean | — | Required indicator |
| description | string | — | Help text |
| error | string | — | Error message |
| children* | ReactNode | — | Input element |