> ## 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.

# Radio 11

> Horizontal radio toggle with two pill-shaped options: Monthly and Yearly billing, with discount badge.

<Frame>
  ![Radio 11](https://ffciaqoksnnzuihswbxs.supabase.co/storage/v1/object/public/components/Elements/Radios/radio-monthly-or-yearly.png)
</Frame>

## Overview

Radio 11 is a billing period selector component featuring two radio-style toggle options: 'Bill Monthly' and 'Bill Yearly'. It uses a pill/tab switcher pattern where only one option can be selected at a time. The active selection is highlighted with a white background and subtle shadow, while the inactive option remains transparent. The Yearly option also displays a '-20%' discount badge in green. Selection 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 **Radio 11** 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                                                                                                                             |
| ----------------- | ----------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| Monthly Selected  | User clicks the 'GP - Monthly (Radio 11)' group | Monthly option gains white background with a soft box shadow; text color changes to dark; Yearly option returns to transparent background |
| Yearly Selected   | User clicks the 'GP - Yearly (Radio 11)' group  | Yearly option gains white background with a soft box shadow; text color changes to dark; Monthly option returns to transparent background |
| Mobile Responsive | Page width is less than mobile breakpoint       | The '-20%' discount badge on the Yearly option increases font size from 12 to 14                                                          |

<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 - Monthly (Radio 11) group is clicked | Sets the parent group's 'radio\_item\_' custom state to the 'item\_' custom state value of the Monthly group (value: 1), marking Monthly as selected |
| GP - Yearly (Radio 11) group is clicked  | Sets the parent group's 'radio\_item\_' custom state to the 'item\_' custom state value of the Yearly group (value: 2), marking Yearly as selected   |

<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>
