Checkbox
A control for a single on/off/indeterminate value.
Overview
Pair it with an external Label (via id/htmlFor) laid out as a flex row, rather than passing label text as children.
- `CheckboxGroup`: gathers several under one label and a
valuearray (react-ariaCheckboxGroup; eachCheckboxtakes avalue). - `CheckboxCard`: a choice card — the whole card is the checkbox, its children are the content (an
IconTile,FieldContentwithFieldTitleandFieldDescription) and a square indicator sits at the end. Selected cards take aprimarytint, hovered onesaccent.
Installation
CLI
Manual
- 1
Register the @fma-ds namespace in components.json (once)
- 2
Add the item
Files land in
components/fma-ds/checkbox.tsx; npm and registry dependencies are installed along with them.
Dependencies
- npm
- cn@^0.5.0lucide-react@^1.61.0react-aria-components@^1.22.1
- Registry
- @fma-ds/field