Checkbox
A checkbox is an interactive element that allows users to select one or more options from a set. It typically appears as a small square box that can be checked (selected) or unchecked (deselected).
Checkboxes are commonly used in forms, settings, and preference panels to enable users to make multiple selections independently.
They provide a clear and straightforward way for users to indicate their choices, and their state (checked or unchecked) is visually distinct, ensuring an intuitive and accessible user experience.
Basic
π§ͺ Beta
π In progress
π Alpha
π Alpha
Checkboxes have a bug in Svelte using bind:group
Guidelines
Correct / Incorrect
Takeaways
Features
Usage
Implementation
<script lang="ts"> import { Checkbox } from '@behavy/glowup-design-system';
let selected_list: string = '';</script>
<Checkbox label="Checkbox name" value="value" {selected_list} />Properties
| Status | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|
| π | name | string | βcheckboxβ | β | The name of the checkbox. |
| π | label | string | β | The label of the checkbox. | |
| π | value | string | β | The value of the checkbox. | |
| π | selected_list | string | β | The list of the selected checkbox. | |
| π | disabled | boolean | false | β | Disables the checkbox. |
| π | unchecked_icon_url | string | β | The URL of the unchecked icon. | |
| π | height | string | β20pxβ | β | The height of the checkbox. |
| π | width | string | β20pxβ | β | The width of the checkbox. |
Examples
Alternative
Toggle Use a toggle to switch between two states.
Radio Use a radio button 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 { CheckboxCard } from '@behavy/glowup-design-system';
let selected_list: string = '';</script>
<CheckboxCard label="Checkbox label" value="value" {selected_list} />Properties
| Status | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|
| π | name | string | βcheckboxβ | β | The name of the checkbox. |
| π | label | string | β | The label of the checkbox. | |
| π | value | string | β | The value of the checkbox. | |
| π | selected_list | string | β | The list of the selected checkbox. | |
| π | disabled | boolean | false | β | Disables the checkbox. |
| π | icon | string | β | The icon of the checkbox. | |
| π | unchecked_icon_url | string | β | The URL of the unchecked icon. | |
| π | variant | boolean | false | β | The variant of the checkbox. |
Examples