Components

Switch

A component that allows turning specific settings and states on or off immediately.

FigmaReactLynxiOSAndroid
Switch cover image

Anatomy

Composed of Switch Mark and Label.

Switch is composed of Switch Mark and Label. Switch Mark is provided as a separate component, so it can be freely combined and used on its own.

Switch Mark consists of a Thumb and a Track.

Properties

Size

Size Property

Switch is provided in heights of 16, 24, and 32.

Tone

Tone Property

Switch uses Neutral Tone.

State

State

State

Switch has Selected and Unselected states, and each state is expressed as a combination with Enabled and Disabled states depending on user interaction.

Layout

Layout

For each Switch size, we provide a recommended combination with the text label style that visually fits it best. This lets you quickly build a consistent, well-balanced UI.

Guidelines

Switch Touch Target

Touch Target

Switch treats the area that includes the Switch Mark and Label as its target.

Switch's 16 size has a height of 24 because it needs to guarantee the minimum touch target area.

Touch Target

When Switch is combined with something like List, the whole row should become the target area.

Touch Target comparison

Because Switch Mark is designed to be used in combination with other elements, it does not have a separate touch area based on its own element size.

Using Switch for state that activates immediately

Example using a Switch labeled 'I've reviewed all the content'
Don’t
Don't use Switch in situations where there is no immediate result.
Example using a Checkbox labeled 'I've reviewed all the content'
Do
Use Checkbox when there is no immediate result.

Toggling Switch produces an immediate result, so use Checkbox when the result doesn't appear until the user taps a final button.

Use only for independent functionality

Example listing an overall notifications on/off Switch alongside sub-notification setting Switches
Don’t
Use a component with a parent-child relationship instead of Switch.

Switch is an element that operates independently. When you need an action like 'select all', it's better to use a component with a parent-child relationship.

Clearly mark the Disabled state

Example showing both the entire List Item and the Switch Mark in a disabled state

Example showing only the Switch Mark in a disabled state within a List Item
Don’t
When disabled, it's recommended that the text label also reflect the disabled state.

When a Switch is disabled, it's recommended to also show the text label in a disabled color so users don't mistake the state of the whole item.

Switch vs. Checkbox

Checkbox vs. Switch comparison

Usage example

Checkbox and Switch are components that indicate whether the user has made a selection.

CheckboxSwitch
Applying the selected valueThe value is saved only after an action like Save is performed (recommended)Applied immediately with no separate action (recommended)
How items are organizedMultiple items can be listed under one categoryRecommended to be organized as individual items
Configuring child itemsA parent can select/deselect all child itemsNo relationship between parent and child items

Specification

Switch

base

StateSlotPropertyValue
enabledlabelcolor
fontWeight
disabledlabelopacity
opacityDuration
opacityTimingFunction

size=32

StateSlotPropertyValue
enabledrootheight
gap
labelfontSize
lineHeight

size=24

StateSlotPropertyValue
enabledrootheight
gap
labelfontSize
lineHeight

size=16

StateSlotPropertyValue
enabledrootheight
gap
labelfontSize
lineHeight

Switchmark

base

StateSlotPropertyValue
enabledrootcornerRadius
color
colorDuration
colorTimingFunction
colorDelay
thumbcornerRadius
scale
scaleDuration
scaleTimingFunction
translateDuration
translateTimingFunction
colorDuration
colorTimingFunction
colorDelay
disabledrootopacity
opacityDuration
opacityTimingFunction
selectedthumbscale
pressedrootscaleScope

tone=brand

StateSlotPropertyValue
enabledthumbcolor
enabled, selectedrootcolor

tone=neutral

StateSlotPropertyValue
enabledthumbcolor
enabled, selectedrootcolor
disabledthumbcolor
disabled, selectedrootcolor

size=32

StateSlotPropertyValue
enabledrootheight
width
paddingX
paddingY
thumbheight
width

size=24

StateSlotPropertyValue
enabledrootheight
width
paddingX
paddingY
thumbheight
width

size=16

StateSlotPropertyValue
enabledrootheight
width
paddingX
paddingY
thumbheight
width

Table of contents