Radio
A radio button is an interactive element that allows users to select one option from a predefined set of mutually exclusive choices. Unlike checkboxes, radio buttons are designed for single selection within a group, ensuring that only one option can be chosen at a time.
They typically appear as small circles that can be filled (selected) or empty (deselected). Radio buttons are ideal for scenarios where a user must choose one option from a list, such as selecting a payment method or answering a multiple-choice question.
Their clear and straightforward design helps users make decisions quickly and accurately, enhancing the overall user experience.
Basic
π§ͺ Beta
π In progress
π Alpha
π Alpha
Guidelines
Correct / Incorrect
Takeaways
Features
Usage
Implementation
<script lang="ts"> import { Radio } from '@behavy/glowup-design-system';
let selected_list = '';</script>
<Radio label="Option 1" value="option1" {selected_list} />Properties
| Status | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Β π | name | string | βradioβ | β | The name of the radio. |
| Β π | value | string | β | The value of the radio. | |
| Β π | label | string | β | The label of the radio. | |
| Β π | selected_list | string | β | The list of the selected radio. | |
| Β π | disabled | boolean | false | β | Disables the radio. |
Examples
Alternative
Toggle Use a toggle to switch between two states.
Checkbox Use a checkbox to select multiple options from a list.
Select Use a select component to choose an option from a list.
Card
π§ͺ Beta
π In progress
π Alpha
π Alpha
Guidelines
Correct / Incorrect
Takeaways
Features
Usage
Implementation
<script lang="ts"> import { RadioCard } from '@behavy/glowup-design-system';
let selected_list = '';</script>
<RadioCard label="Option 1" value="option1" {selected_list} />Properties
| Status | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|
| π | name | string | βradioβ | β | The name of the radio. |
| π | value | string | β | The value of the radio. | |
| π | label | string | β | The label of the radio. | |
| π | selected_list | string | β | The list of the selected radio. | |
| π | disabled | boolean | false | β | Disables the radio. |
| π | icon | string | β | The icon of the radio. | |
| π | variant | boolean | false | β | The variant of the radio. |
Examples
Alternative
Toggle card Use a toggle card to switch between two states.
Checkbox card Use a checkbox card to select multiple options from a list.
Select Use a select component to choose an option from a list.