Toggle
bk-toggle: a form-ready (CVA) on/off switch. toggleClass selects the size token, e.g. toggle-sm / toggle-md.
Preview
A working preview of Toggle in the Brickclay style. Try it.
Interact with the preview to see events here.
API reference
| Input | Type | Default | Description |
|---|---|---|---|
label | string | '' | Visible label. |
disabled | boolean | false | Disables toggling. |
toggleClass | string | 'toggle-md' | Size token class. |
change | EventEmitter<boolean> | output | Fires on toggle. |