#007
Disabled
Three disabled checkboxes: unchecked, checked and indeterminate.
Hand this to your AI. It names the exact library parts, timings and accessibility promises of this demo.
Build the "Disabled" pattern (@codeatlasdev/ui demo #007, inputs/checkbox) in my app.
Call get_demo({ ids: ["#007"] }) first and keep its structure. It needs @codeatlasdev/[email protected].
Use: Showing a read-only option whose value the user cannot change, such as a setting locked by plan or permission.
Keep these library parts, with the props and tokens the demo uses:
- Checkbox from "@codeatlasdev/ui"
Behaviour to keep:
- `disabled` with `label="Disabled unchecked"`
- `checked disabled` with `label="Disabled checked"`
- `indeterminate disabled` with `label="Disabled indeterminate"`
- Three `<Checkbox` components, no bound state
Reduced motion: the demo handles it; keep that branch.
Keyboard: not an interactive control.
Change only the copy and the data. Use the theme tokens (--ca-*), never raw colours. Library parts
- Checkbox
@codeatlasdev/ui
How it is built
- `disabled` with `label="Disabled unchecked"`
- `checked disabled` with `label="Disabled checked"`
- `indeterminate disabled` with `label="Disabled indeterminate"`
- Three `<Checkbox` components, no bound state
Related
Loading source.