Skip to main content
Switch 04

Overview

Switch 04 is a toggle switch UI component that allows users to turn a setting on or off. It consists of a rounded container with a circular thumb element that visually shifts position based on the active state. The component manages its own boolean custom state (‘active_’) and includes conditional workflows to toggle between true and false when clicked.

How to use

1

Open the Brikl panel

Navigate to the Elements category in the Brikl panel.
2

Copy the component

Find Switch 04 and click Copy.
3

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.
StateTriggerVisual effect
Off (Default)Initial state or when active_ custom state is falseBorder color is light gray, thumb is aligned to the left with a gray background
On (Active)User clicks the switch when active_ is falseBorder color changes to dark (rgba(27,23,24,1)), thumb background turns dark and aligns to the right
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.
TriggerAction
Switch group is clicked (when active_ is false)Sets the custom state ‘active_’ on the switch element to true (turns switch on)
Switch group is clicked (when active_ is true)Sets the custom state ‘active_’ on the switch element to false (turns switch off)
These workflows are included when you use the Copy with Workflows option in the Brikl panel.

Requirements

LicenseStarter plan required
PluginsNone
Custom codeNot required

Platforms

PlatformSupported
Web
Mobile

License

This component requires a Starter plan.