Skip to main content
Switch 07

Overview

Switch 07 is a dark/light mode-style toggle switch component that allows users to switch between two states (off/on). It features a pill-shaped background that changes color, a sliding circular knob that moves left or right, and a moon/sun icon that changes based on the active state. The component uses a custom state to track whether it is active or inactive, and workflows handle the toggling logic on click.

How to use

1

Open the Brikl panel

Navigate to the Elements category in the Brikl panel.
2

Copy the component

Find Switch 07 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.
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.
These workflows are included when you use the Copy with Workflows option in the Brikl panel.

Requirements

Platforms

License

This component requires a Starter plan.