Field
One labeled control with optional hint and an error or success message.
Semantic group of fields with a legend and optional description. This is the form group.
A legend and optional description around related fields. This is the form group. A single labeled control stays Field.
Legend, description, and kit fields. Do not add FieldLegend, FieldGroup, or Form.
FieldSet is the form group. One Field stands alone. Page titles stay on PageHeader.
import { FieldSet } from "agentic-ds-kit";From contracts/fieldset.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| legend | string | Yes | — | — |
| description | string | No | — | Linked to the fieldset with aria-describedby, so it is read with the legend on first focus. |
| layout | stack | side | No | stack | stack: legend and description above the fields. side: legend (16/24, heading weight) and description in a fixed left column (--layout-sidebar plus 24) with the fields 48 to the right; stacks when the FieldSet is under 40rem wide. Use side for the groups of a wide settings form in one Card. |
| children | slot | Yes | — | kit Field, Checkbox, Switch, or RadioGroup |
One labeled control with optional hint and an error or success message.
Top-of-page title with optional Breadcrumb trail, subtitle, actions, page Tabs, a profile Avatar and a decorative cover.
Framed tile with optional header, body, and footer actions.
The brief a person hands an agent before it plans: a goal, one-line "done when" checks, optional spend, time and step limits, allowed tools, model and check-in level.