# Field

Label on top, control, hint below. Validates on blur, then live.

Import from `@a31labs/rax/field`.

## Usage

```tsx
const { error, onBlur } = useBlurValidation(url, validate);
<Field label="Health check URL" hint="Checked every 30 seconds" error={error}>
  <Input value={url} onChange={(e) => setUrl(e.target.value)} onBlur={onBlur} />
</Field>
```

## Rules

Props: `label`, `hint`, `error`, `className`, `ref` (root element), one control as the child (Input, Textarea, Select, ...). Label on top (500), hint below in ink-2 at 14px. With `error` the control gets a danger outline and the hint is replaced by the error text in danger-ink, weight 500, with the danger glyph in front. The hook `useBlurValidation(value, validate)` returns `{ error, onBlur }`: no error until the first blur, then live while the user fixes it.

Page: https://rax.a31.at/components/field
