Save 15% on all Justd Blocksfor a limited time during the launch!
Components
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.
Preview
Code
Loading...
Installation
If you hit any issues, make sure you check out the installation guide here for more information.
Manual Installation
Make sure you also install the composed components and the required packages for the component to function properly.
Appearance
Customize the look of the toggle button using the appearance
prop.
Preview
Code
Loading...
Shape
Modify the shape of the toggle button with the shape
prop.
Preview
Code
Loading...
Size
Adjust the toggle button's size using the size
prop.
Preview
Code
Loading...
Controlled
Manage the toggle button's state with the isSelected
prop.
Preview
Code
Loading...
Disabled
Disable a toggle button by setting the disabled
prop.
Preview
Code
Loading...