> ## Documentation Index
> Fetch the complete documentation index at: https://docs.brikl.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Switch 05

> Horizontal toggle switch with label text, showing Off/On states with dark and light styling.

<Frame>
  ![Switch 05](https://ffciaqoksnnzuihswbxs.supabase.co/storage/v1/object/public/components/Elements/Switchs/switch-with-right-text.png)
</Frame>

## Overview

Switch 05 is a toggle switch component that allows users to activate or deactivate a boolean state. It consists of a pill-shaped toggle track with a circular thumb that slides between left (Off) and right (On) positions, accompanied by a label that updates accordingly. The active state is managed via a custom state on the parent group.

## How to use

<Steps>
  <Step titleSize="h4" title="Open the Brikl panel">
    Navigate to the **Elements** category in the Brikl panel.
  </Step>

  <Step titleSize="h4" title="Copy the component">
    Find **Switch 05** and click **Copy**.
  </Step>

  <Step titleSize="h4" title="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**.
  </Step>
</Steps>

## States

This component includes conditional states that automatically change its appearance.

| State         | Trigger                                              | Visual effect                                                                                        |
| ------------- | ---------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| Off (default) | Custom state 'active\_' is false on the parent group | Switch background is gray (rgba(216,211,212,1)), thumb aligned to the left, label displays 'Off'     |
| On (active)   | Custom state 'active\_' is true on the parent group  | Switch background changes to dark (rgba(27,23,24,1)), thumb aligns to the right, label displays 'On' |

<Note>
  These states are handled natively by Bubble and require no additional setup.
  They will work automatically once the component is pasted into your editor.
</Note>

## 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 05 is clicked (when active\_ is false) | Sets custom state 'active\_' to true on the parent group, turning the switch On   |
| GP - Switch 05 is clicked (when active\_ is true)  | Sets custom state 'active\_' to false on the parent group, turning the switch Off |

<Note>
  These workflows are included when you use the **Copy with Workflows** option in the Brikl panel.
</Note>

## Requirements

|             |                       |
| ----------- | --------------------- |
| License     | Starter plan required |
| Plugins     | None                  |
| Custom code | Not required          |

## Platforms

| Platform | Supported |
| -------- | --------- |
| Web      | ✅         |
| Mobile   | ✅         |

## License

<Note>
  This component requires a **Starter** plan.
</Note>
