Component
RadioGroup
Choose exactly one option from a small visible set.
Multi-select or confirmation control. Optional visible label.
Multi-select and confirmations. Each in lg, md, and sm. Label optional.
A medium labeled Checkbox. Click it to check it. Variants shows sizes, unlabeled and every state.
RadioGroup for exclusive choice. Unlabeled needs ariaLabel. Indeterminate only for a parent that reflects mixed children.
import { Checkbox } from "agentic-ds-kit";From contracts/checkbox.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 |
|---|---|---|---|---|
| id | string | Yes | — | — |
| label | string | No | — | visible text; required unless ariaLabel is set |
| ariaLabel | string | No | — | required when label is omitted (table row, icon-only slot) |
| size | lg | md | sm | No | md | — |
| disabled | boolean | No | false | — |
| error | boolean | No | false | — |
| checked | boolean | No | — | controlled |
| defaultChecked | boolean | No | false | uncontrolled |
| indeterminate | boolean | No | false | visual + aria-checked mixed; set via input.indeterminate |
| onChange | function | No | — | (checked: boolean) => void |
| name | string | No | — | — |
| describedBy | string | No | — | Field wires hint and error ids onto the input |