Buttons
Toggle
Toggle is like light switches for your digital digs. Flip 'em on, and they light stuff up; flip 'em off, and it's lights out.
Basic
A toggle button allows users to switch between two states, such as enabling or disabling a feature.
Installation
Manual installation
Intent
Customize the look of the toggle button using the intent
prop.
Size
Adjust the toggle button's size using the size
prop.
Controlled
Manage the toggle button's state with the isSelected
prop.
Disabled
Disable a toggle button by setting the disabled
prop.
Touch hitbox
Sometimes you may want to use this button with only an icon. In that case, you can apply the touch-target
utility class on the sq-*
size to increase the button’s hitbox for improved accessibility.
Design Intent UI
Build modern web apps faster with 350+ blocks and polished templates crafted for professionals.