Skip to content

Toggle

A toggle is an interactive element that allows users to switch between two states, typically on and off. It is commonly represented as a switch or a button that changes position or color to indicate the current state.

Toggles are used for settings and preferences where a binary choice is required, such as enabling or disabling notifications, switching between light and dark modes, or turning features on or off.

Well-designed toggles provide clear visual feedback and are easy to understand and use, enhancing the overall user experience by making state changes intuitive and immediate.

Basic

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 { Toggle } from '@behavy/glowup-design-system';
</script>
<Toggle label="Toggle" />

Properties

StatusNameTypeDefaultRequiredDescription
πŸ”­labelstringβœ…The label of the toggle.
πŸ”­checkedbooleanfalse❌The state of the toggle.
πŸ”­disabledbooleanfalse❌Disables the toggle.

Examples

Alternative

Card

Figma logo Figma
⏳ To do
book icon Guidelines
⏳ To do
desktop icon Web
⏳ To do
phone icon Mobile
⏳ To do
comment icon Comment
Create the card component for the toggle in Figma

Guidelines

Correct / Incorrect

Takeaways

Features

Usage

Implementation

Properties

StatusNameTypeDefaultRequiredDescription

Examples

Alternative