Checkbox
bk-checkbox: a form-ready (CVA) checkbox with an optional label.
Preview
A working preview of Checkbox in the Brickclay style. Try it.
Interact with the preview to see events here.
Sizes
checkboxClass has no default, pass one of xsm, sm, md, lg, or the box renders at zero size.
API reference
| Input | Type | Default | Description |
|---|---|---|---|
label | string | '' | Visible label text. |
disabled | boolean | false | Disables toggling. |
checkboxClass / labelClass | string | '' | Extra classes for the box / label. |
change | EventEmitter<boolean> | output | Fires on toggle. |