FORMS
Field
Wraps any control with a label, optional hint, and inline error. Use layout="control" for inline checkbox stacks.
PREVIEW
Display name only.
Email is required.
SOURCE
import { Field, Input } from '@objectifthunes/whiteboard'
<Field label="Name" htmlFor="name" hint="Display name only.">
<Input id="name" />
</Field>
<Field label="Email" htmlFor="email" error="Email is required.">
<Input id="email" type="email" />
</Field>NOTES
Wraps a control with a Label, the children, an optional hint, and an inline error. The hint disappears when there is an error.
layout="control" swaps the inner grid for a control-style row — pair with as="fieldset" for inline checkbox groups.