Overview
Switch 08 is an interactive toggle component that allows users to switch between two states (active/inactive). It features a sliding circle indicator inside a rounded pill container, accompanied by moon and sun icons that visually represent the off and on states respectively. The active state changes the background color and repositions the toggle knob.
How to use
Open the Brikl panel
Navigate to the Elements category in the Brikl panel.
Copy the component
Find Switch 08 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 (Inactive) | Custom state ‘active_’ is false | Background is light gray, toggle knob aligned to the left, moon icon is fully visible, sun icon is dimmed |
| On (Active) | Custom state ‘active_’ is true | Background changes to dark (rgba(27,23,24,1)), toggle knob shifts to the right, sun icon becomes fully visible, moon icon is dimmed |
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 08 is clicked (when active_ is false) | Sets custom state ‘active_’ to true on the group element, turning the switch on |
| GP - Switch 08 is clicked (when active_ is true) | Sets custom state ‘active_’ to false on the group element, 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.