Checkbox
atomsA real <input type="checkbox"> with a token-styled box, an attached label, indeterminate and three sizes.
Select rows with a header checkbox
indeterminate shows a mixed header while some rows are checked; bind:checked drives each row.
eu-west-1 ok
eu-west-1 warn
us-east-1 danger
eu-west-1 ok
ap-northeast-1 ok
us-east-1 warn
States
unchecked, checked, indeterminate, disabled in both states, invalid inside a Field error, and a long label that wraps under itself.
You must accept the terms to continue.
Micro-interactions
data-fx-check on <html> or any ancestor picks the effect: draw (default), pop, confetti, morph (the tick folds into the mixed dash) or none. Click to replay.
draw pop confetti morph none Props
| Prop | Type | Default | Description |
|---|---|---|---|
checked bindable | boolean | false | |
indeterminate | boolean | false | |
invalid | boolean | false | Error state: danger box border + aria-invalid. |
label required | string | — | |
labelHidden | boolean | false | Keep `label` for AT only (sr-only). |
size | ControlSize | 'md' | Box + label scale, as on `Switch`. |
sound | boolean | true | Play UI sounds when enabled globally; false silences this instance. |
id | string | — | |
aria-describedby | string | null | — | |
aria-invalid | HTMLInputAttributes['aria-invalid'] | — | |
el bindable | HTMLInputElement | null | null |