Get StartedFoundationsComponentsPatternsIntegration
01.Get Started
02.Foundations
03.Components
04.Patterns
05.Integration
Overview
Accordion
Badge
Breadcrumb
Button
Gradient Button
FAB
Icon Button
Card
Checkbox
Chips
Date Picker
Dialogs
Divider
List
Loading
Menu
Options
Pagination
Radio
Scrollbar
Search
Selector
Skeleton
Slider
Swiper
Switch
Tabs
Text Field
TextArea
Toast
Tooltip

SWITCH

PreviousSwiper
TabsNext
ELFBAR Design

V 0.1.0

A design system built for BMD teams.

Brand Marketing Department

Resources

  • GitHub
  • Storybook
  • Figma

Documentation

  • Changelog
  • Components
  • Tokens
  • Global market globe

Brands

  • ELFBAR Official
  • LostMary Official

Copyright © 2026 ELFBAR. All rights reserved.

When to Use

Example: account preferences

Preferences

Manage notifications & display

Notifications

Order updates
Promotions

Display

Dark mode
Auto-reorder reminder
  • Toggling a setting or feature that takes effect immediately (e.g. dark mode, notifications)
  • Binary on/off preferences in settings panels or forms
  • When the result of the toggle is instantly visible without a submit action
  • Use Checkbox instead when the change requires explicit form submission

Usage Guidelines

DO

Use for enabling/disabling a setting that takes immediate effect (e.g. "Allow notifications", "Remember me")

Don’t

Don't use Switch for batch selection — use Checkbox instead

DO

Use for toggling a single boolean property without needing to combine multiple inputs before submitting

Don’t

Don't use Switch for unpredictable or destructive actions — use Button + Dialog confirmation instead

DO

Keep Switch and Checkbox usage patterns distinct within the same form

Don’t

Don't mix Checkbox and Switch in the same list — it increases cognitive load

Accessibility

  • Uses Radix UI @radix-ui/react-switch, native role="switch" + aria-checked to express the current state.
  • The switch should always have a clear label describing "what this setting does", not just "on / off".
  • Use disabled for the disabled state and ensure sufficient contrast difference from the enabled state.