Overview
TheSwitch component is a toggle control that allows users to switch between checked and unchecked states. Built on Reka UI’s Switch primitive.
Basic usage
With label
With description
With icons
Props
The controlled state of the switch.
The color of the switch.
The size of the switch.
Label text displayed next to the switch.
Description text displayed below the label.
Icon to display when switch is checked.
Icon to display when switch is unchecked.
Show loading state.
Disable the switch.
Mark as required for forms.
Events
Emitted when the switch state changes.
Emitted when the switch is toggled.
Slots
Custom label content.
Custom description content.