TailwindAdmin can be used in personal & commercial projects.

Learn more

NiceAdmin can be used in personal & commercial projects.

Learn more

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

Color Toggle Switch

Toggle Switch Sizes

API ( Toggle Switch )
PropDescriptionTypeDefault

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"