Switch

Inputs

A toggle switch for boolean values.

Preview

Usage

<Switch label="Notifications" bind:checked={enabled} />

Props

NameTypeDefaultDescription
checkedbooleanfalseWhether the switch is on.
labelstring''Label text.