Skip to content

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.

CheckboxOptions = {}

void

const $prefs = A.proxy({newsletter: true});
S.checkbox({ label: "Subscribe to newsletter", bind: A.ref($prefs, "newsletter") });