Ready-to-Use Components Powered by Flowbite, ShadCN & Headless UI
Component Library
Browse and explore components
Toggle Switch
A Toggle Switch is a UI component used to switch between two states, such as on and off.
Default Toggle Switch
Sample Code
Show Code
Copy Code
Color Toggle Switch
Sample Code
Show Code
Copy Code
Toggle Switch Sizes
Sample Code
Show Code
Copy Code
API ( Toggle Switch )
Prop | Description | Type | Default |
---|---|---|---|
color | Sets the background color of the Toggle Switch. | "blue" | "yellow" | "success" | "info" | "default" |
size | Sets the size of the Toggle Switch. | "sm" | "md" | "lg" | "md" |