#009
Without label
Three checkboxes with no visible label, named only through aria-label: bound, checked and indeterminate.
Hand this to your AI. It names the exact library parts, timings and accessibility promises of this demo.
Build the "Without label" pattern (@codeatlasdev/ui demo #009, inputs/checkbox) in my app.
Call get_demo({ ids: ["#009"] }) first and keep its structure. It needs @codeatlasdev/[email protected].
Use: Row selection checkboxes in tables or lists where the label is implied by the row and only an accessible name is needed.
Keep these library parts, with the props and tokens the demo uses:
- Checkbox from "@codeatlasdev/ui"
Behaviour to keep:
- `bind:checked={value}` with `aria-label="Unlabelled checkbox"`
- `checked` with `aria-label="Unlabelled checked checkbox"`
- `indeterminate` with `aria-label="Unlabelled indeterminate checkbox"`
- No `label` prop on any of the three
Reduced motion: the demo handles it; keep that branch.
Keyboard: operable; keep the focus order and key handling.
Change only the copy and the data. Use the theme tokens (--ca-*), never raw colours. Library parts
- Checkbox
@codeatlasdev/ui
How it is built
- `bind:checked={value}` with `aria-label="Unlabelled checkbox"`
- `checked` with `aria-label="Unlabelled checked checkbox"`
- `indeterminate` with `aria-label="Unlabelled indeterminate checkbox"`
- No `label` prop on any of the three
Related
Loading source.