Overview
Switch 02 is a free, interactive toggle switch component for Bubble.io. It displays a rounded pill-shaped container with a sliding white circular knob that visually moves from left (off) to right (on) when clicked. The component uses a custom boolean state to track its active status and toggles between on and off via conditional workflows on click.
How to use
Open the Brikl panel
Navigate to the Elements category in the Brikl panel.
Copy the component
Find Switch 02 and click Copy.
Paste into your editor
Paste it into your Bubble canvas with Cmd + V (Mac) or Ctrl + V (Windows),
or right-click on the canvas and select Paste.
States
This component includes conditional states that automatically change its appearance.
| State | Trigger | Visual effect |
|---|
| Off | Default state or when active_ custom state is false | Background is light gray (rgba(216,211,212,1)), knob is aligned to the left (flex-start) |
| On | When active_ custom state is true | Background changes to dark (rgba(27,23,24,1)), knob slides to the right (flex-end) |
These states are handled natively by Bubble and require no additional setup.
They will work automatically once the component is pasted into your editor.
Responsive
This component adapts to mobile screens. Font sizes and layout automatically adjust on screens smaller than Bubble’s built-in mobile breakpoint.
Workflows
This component includes pre-built workflows.
| Trigger | Action |
|---|
| Switch group clicked (when active_ is false) | Sets the active_ custom state to true, turning the switch on |
| Switch group clicked (when active_ is true) | Sets the active_ custom state to false, turning the switch off |
These workflows are included when you use the Copy with Workflows option in the Brikl panel.
Requirements
| |
|---|
| License | Free |
| Plugins | None |
| Custom code | Not required |
| Platform | Supported |
|---|
| Web | ✅ |
| Mobile | ✅ |
License
This component is available on the free plan.