Overview
Switch 06 is a toggle switch component that allows users to switch between an active (On) and inactive (Off) state. It features a pill-shaped container with a sliding white circle thumb, label text for both states, and visual feedback through background color changes. The component uses a custom state to track its active status and includes workflows to toggle the state on click.
How to use
Open the Brikl panel
Navigate to the Elements category in the Brikl panel.
Copy the component
Find Switch 06 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 |
|---|
| Active (On) | Custom state ‘active_’ is true on the parent group | Switch container background changes to dark (rgba(27,23,24,1)), thumb aligns to the right (flex-end), and the ‘On’ label becomes fully opaque (opacity 100) |
| Inactive (Off) | Custom state ‘active_’ is false on the parent group | Switch container background remains light grey (rgba(216,211,212,1)), thumb aligns to the left (flex-start), and the ‘Off’ label becomes fully opaque (opacity 100) |
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 |
|---|
| GP - Switch 06 is clicked (when active_ is false) | Sets custom state ‘active_’ to true on the Switch 06 group, turning the switch On |
| GP - Switch 06 is clicked (when active_ is true) | Sets custom state ‘active_’ to false on the Switch 06 group, turning the switch Off |
These workflows are included when you use the Copy with Workflows option in the Brikl panel.
Requirements
| |
|---|
| License | Starter plan required |
| Plugins | None |
| Custom code | Not required |
| Platform | Supported |
|---|
| Web | ✅ |
| Mobile | ✅ |
License
This component requires a Starter plan.