widgets
Atomic Components
toggle
A two-state button that can be either on or off. The copy button allows you to copy the variant name to your clipboard.
Default
With Text
Controlled
Bold is off
Default Pressed
Starts in pressed state
Disabled
Different Sizes
Variants
Text Only
Toolbar Example
Custom State Handling
Check the console to see toggle state changes.