Skip to content

Checkbox Input

A sl-input-checkbox component is an interactive element that allows the user to pick an option.

This component reflects and extends the behavior of the standard input element, with checkbox type.

html
<sl-input-checkbox label="I want to receive marketing emails."/>

Attributes

Disabled

Makes the checkbox non-interactable.

html
<sl-input-checkbox label="I want to receive marketing emails." disabled/>

Events

Change

Triggered when the user toggles the value.

html
<sl-input-checkbox label="I want to receive marketing emails."/>