Skip to content

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

Figma logo Figma
πŸ§ͺ Beta
book icon Guidelines
πŸ›  In progress
desktop icon Web
πŸ”­ Alpha
phone icon Mobile
πŸ”­ Alpha
comment icon Comment
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

StatusNameTypeDefaultRequiredDescription
πŸ”­namestring’checkboxβ€™βŒThe name of the checkbox.
πŸ”­labelstring❌The label of the checkbox.
πŸ”­valuestringβœ…The value of the checkbox.
πŸ”­selected_liststringβœ…The list of the selected checkbox.
πŸ”­disabledbooleanfalse❌Disables the checkbox.
πŸ”­unchecked_icon_urlstring❌The URL of the unchecked icon.
πŸ”­heightstring’20pxβ€™βŒThe height of the checkbox.
πŸ”­widthstring’20pxβ€™βŒThe width of the checkbox.

Examples

Alternative

Card

Figma logo Figma
πŸ§ͺ Beta
book icon Guidelines
πŸ›  In progress
desktop icon Web
πŸ”­ Alpha
phone icon Mobile
πŸ”­ 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

StatusNameTypeDefaultRequiredDescription
πŸ”­namestring’checkboxβ€™βŒThe name of the checkbox.
πŸ”­labelstringβœ…The label of the checkbox.
πŸ”­valuestringβœ…The value of the checkbox.
πŸ”­selected_liststringβœ…The list of the selected checkbox.
πŸ”­disabledbooleanfalse❌Disables the checkbox.
πŸ”­iconstring❌The icon of the checkbox.
πŸ”­unchecked_icon_urlstring❌The URL of the unchecked icon.
πŸ”­variantbooleanfalse❌The variant of the checkbox.

Examples

Alternative