React Switch Components
Switch
Limited-time offer for the first 100 customers in 2025. Use code 2025SKY25 at checkout.
Create consistent cross-browser and cross-device switch component.
Other Frameworks
CoreUI components are available as native Angular, Bootstrap (Vanilla JS), and Vue components. To learn more please visit the following pages.
About#
React Switch Components are a type of UI component that allows users to toggle between two states, usually represented as "on" or "off", "enabled" or "disabled", or "checked" or "unchecked".
When a user interacts with the component by clicking or tapping on it, the switch toggles its state, triggering an action or changing the appearance of the component. This type of component is often used in forms, settings panels, and other places where users need to turn something on or off or choose between two options.
Example#
Sizing#
Larger or smaller react switches? Add size="lg"
or size="xl"
for additional sizes.
Reverse#
Put your switches on the opposite side by adding reverse
boolean property.
API#
Check out the documentation below for a comprehensive guide to all the props you can use with the components mentioned here.