Skip to content

Checkbox ​

<Checkbox name="on"> -- a box that is ticked or not, Wolfram's Checkbox. The binding _on is True or False; value="True" starts it ticked. Put the words beside it in the prose -- the box is the control, the sentence is the label -- or give it a label of its own.

Demos·packages/components/src/checkbox-box.ts· draws Checkbox

Props

PropTypeDefaultNotes
namestring""The binding this box drives: name="a" fills the wildcard _a.reflects
valuestring""True or False at first.
labelstring""A label drawn beside the box.

As a web component

Plain custom elements, no framework required: import @enumeratio/frontend for the side effect and write <checkbox-box> in any HTML. Attributes are kebab-case and always strings; the props table above names each one's attribute where it differs from its prop.