Basic Usage
Checked State
Sizes
Switches come in two sizes:Disabled State
API Reference
Switch Parameters
Label text displayed next to the switch.
Whether the switch is on.
Switch size:
"default", "sm".Form field name for submission.
Whether the switch is non-interactive.
Whether a selection is required for form submission.
Additional Tailwind CSS classes appended to the component’s built-in styles.
Protocol Reference
Switch