Skip to main content

<ui-checkbox>

A toggle checkbox with an optional label.

<ui-checkbox id="notifications" label="Enable notifications" checked="true"></ui-checkbox>

Attributes​

AttributeRequiredDescription
idyesElement identifier
labelnoLabel shown next to the checkbox
checkednoInitial state: "true" or "false" (default "false")

Event​

Emits input-changed immediately on toggle. Value is "true" or "false".