Draft. Ported from the shadcn-vue Field (registry, read 12 November 2026) and restyled with Beehexa tokens. Not yet approved.
Field puts a label, a control, help text and an error in the same places in every form. Use it around Input, Textarea, Native select, Checkbox and Radio group. Form uses the same placement with validation built in.
When to use
- For every form you write by hand. It keeps spacing and order the same across products.
- Use Form instead when the form validates with vee-validate and a schema.
Placement
| Part | Where | Style |
|---|---|---|
| Label | Above the control; beside a checkbox, radio or switch | font.label.default, color.text |
| Help text | Under the control. Between the label and the control only when it must be read first: wrap the label and the help text in FieldContent |
font.body.small, color.text.subtle |
| Error | Under the control, after the help text | font.body.small, color.text.danger |
An invalid field keeps its label in color.text: labels need 7:1 (D4). The control’s red edge and the message show the error, and the message says how to fix it.
Spacing
| Between | Token |
|---|---|
| Label, control, help text and error in one field | space.100 (8 px) |
| A label and its description beside a checkbox | space.050 (4 px) |
Label and the help text above its control (in FieldContent) |
space.050 (4 px) |
| Legend and its description | space.050 (4 px) |
| Fields in a group | space.stack (16 px) |
| Checkboxes or radios in a group | space.150 (12 px) |
| A checkbox or radio group and its error in a field set | space.150 (12 px), the field set’s gap |
| Field sets (form sections) | space.stack.group (32 px), which a FieldSeparator gives |
Orientation
vertical(default): label above. Use it for text fields, selects and text areas.horizontal: control beside the label. Use it for checkboxes, radios and switches.responsive: vertical in a narrow container, horizontal from themdcontainer width.
Choice cards
Wrap a whole Field in a FieldLabel to make a card. Use cards when each option needs a sentence of explanation and there are two to four options. The chosen card uses color.background.selected with a color.border.selected edge; the checked control is the second cue. Cards have radius.card corners and space.150 padding.
Parts
Field, FieldLabel, FieldDescription, FieldError, FieldContent (label and description beside a control, or above it), FieldTitle (a label that is not a <label>, for cards), FieldGroup, FieldSet, FieldLegend, FieldSeparator.