Toggle Component Playground
Interactive playground to test all Toggle props and variants
Props
Optional: HTML id attribute for the toggle
Optional: Text label displayed next to the toggle
Current State
State: OFF
Disabled: No
Preview
<Toggle id="toggle-example" checked={false} onCheckedChange={(checked) => { /* handle toggle */ }} />{
"checked": false,
"disabled": false,
"onCheckedChange": "(function)",
"id": "toggle-example"
}Checked
Unchecked
Disabled (Checked)
Disabled (Unchecked)