Switch

Switch is used to view or switch between enabled or disabled states.

Example

checked

Props

Name Type Default Description
checked boolean | "indeterminate" false Whether the switch is checked
disabled boolean false When true, prevents the user from interacting with the switch.
name string "" The name of the switch. Submitted with its parent form as part of a name/value pair.
required boolean false When true, indicates that the user must check the switch before the parent form can be submitted.
value string "on" The value given as data when submitted with a name.

Slots

Name Description
default

Custom Properties