checkbox
checkbox(
opts?):void
Defined in: components/checkbox.ts:39
A checkbox with an associated, clickable label. Uses the native <input type=checkbox> (styled with accent-color) for full keyboard and screen
reader support.
Parameters
Section titled “Parameters”CheckboxOptions = {}
Returns
Section titled “Returns”void
Example
Section titled “Example”const $prefs = A.proxy({newsletter: true});S.checkbox({ label: "Subscribe to newsletter", bind: A.ref($prefs, "newsletter") });