component
Switch
A setting that's on or off and takes effect straight away. A pill track with a thumb that moves across. The label is SwitchField's.
Try it
Every variant
Default · Not checkedDisabled · Not checkedDefault · CheckedDisabled · CheckedHover, press or tab to one to see the other 6 states.
import { Switch } from 'rost/components/switch/Switch'
<Switch aria-label="Email me receipts" checked={receipts} onCheckedChange={setReceipts} />
// With words beside it, use SwitchField. src/components/switch/Switch.tsx
import { useState, type ButtonHTMLAttributes } from 'react'
import './switch.css'
export interface SwitchProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'> {
/** On or off, when you control it. */
readonly checked?: boolean
/** Where it starts when it looks after itself. */
readonly defaultChecked?: boolean
/** Called with the new value each time it flips. */
readonly onCheckedChange?: (checked: boolean) => void
/** `span` draws it without the button, for a preview inside something that's already a link or a button. */
readonly as?: 'button' | 'span'
}
const b = 'rost-switch'
/**
* A setting that's on or off and takes effect straight away. A
* `<button role="switch">`, so Space and Enter flip it. It has no words of its
* own: put it in a SwitchField for a label, or give it an `aria-label`.
* Built from contracts/switch.contract.yaml.
*/
export function Switch({
checked, defaultChecked = false, onCheckedChange, className, as = 'button',
disabled, type = 'button', onClick, ...rest
}: SwitchProps) {
const [own, setOwn] = useState(defaultChecked)
const on = checked ?? own
const cls = [b, on && `${b}--checked`, className].filter(Boolean).join(' ')
const inner = (
<span className={`${b}__track`}>
<span className={`${b}__background`} />
<span className={`${b}__thumb`} />
<span className={`${b}__focus-ring`} />
</span>
)
if (as === 'span') return <span className={cls} aria-disabled={disabled || undefined}>{inner}</span>
return (
<button
type={type}
role="switch"
aria-checked={on}
disabled={disabled}
className={cls}
onClick={(e) => {
onClick?.(e)
if (e.defaultPrevented) return
if (checked === undefined) setOwn(!on)
onCheckedChange?.(!on)
}}
{...rest}
>
{inner}
</button>
)
}
The source for everything on this page: contracts/switch.contract.yaml (opens in a new tab). The CSS, the docs and the checks in each app are built from it.
# yaml-language-server: $schema=../schema/component-contract.schema.json
schemaVersion: 2
id: switch
name: Switch
kind: component
status: review
summary: A setting that's on or off and takes effect straight away. A pill track with a thumb that moves across. The label is SwitchField's.
category: selection
related: [ switch-field, toggle, chips ]
source:
tool: figma
fileKey: 1Zy0wiWKXQAvsfDBX3KR0d
nodeId: "528:402"
url: https://www.figma.com/design/1Zy0wiWKXQAvsfDBX3KR0d/UI-Kit-v01?node-id=528-402
extractedAt: "2026-10-30"
extractedBy: hand
frozenAt: "2026-10-30"
props:
checked: { type: boolean, default: false, notes: "On or off. It's the switch's `aria-checked`. In React, controlled with `checked` or left to itself with `defaultChecked`." }
states: [ Default, Hover, Pressed, Focus, Disabled ]
elements:
root:
notes: "A `<button role=\"switch\">` holding the track. The browser's own look goes. It has no words of its own: SwitchField puts a label beside it, or give it an `aria-label`."
styles:
display: { value: inline-flex, assert: false }
align-items: { value: center }
vertical-align: { value: middle, assert: false }
position: { value: relative, assert: false }
padding: { token: spacing/gap/none, value: 0px }
background: { value: none, assert: false }
border: { value: none, assert: false }
font: { value: inherit, assert: false }
cursor: { value: pointer, assert: false }
outline: { value: none, assert: false }
track:
notes: "The pill. 40 by 24, the size of a Toggle across and a Chip down."
styles:
position: { value: relative, assert: false }
flex-shrink: { value: "0", assert: false }
width: { token: spacing/size/medium, value: 40px }
height: { token: spacing/size/small, value: 24px }
border-radius: { token: spacing/radius/full, value: 10000px }
outline-style: { value: solid, assert: false, notes: "The track's 1px edge, drawn inside it at full strength over the faded fill, so the switch can be seen against the page (WCAG 1.4.11, 3:1). It used to be part of the faded layer, which left it at 1.9:1 in dark and nothing in light." }
outline-width: { token: spacing/outline/small, value: 1px }
outline-offset: { value: "calc(-1 * var(--spacing-outline-small))", untokenised: "Composed from a token: the edge sits inside the track." }
isolation: { value: isolate, assert: false, notes: "So the fill can sit under the track's edge: the fill is absolutely placed and would otherwise paint over the outline." }
background:
notes: "The track's fill, on its own layer. Off, it's faded the way an off Toggle's plate is, so the thumb on top stays solid. The edge is the track's."
styles:
position: { value: absolute }
inset: { value: "0" }
border-radius: { token: spacing/radius/full, value: 10000px }
pointer-events: { value: none, assert: false }
z-index: { value: "-1", assert: false }
thumb:
notes: "The 16px dot, 4px in from the track's edge. It sits left when off and right when on. It jumps for now: there are no motion tokens yet, and when there are it should slide."
styles:
position: { value: absolute }
top: { token: spacing/gap/2xsmall, value: 4px }
left: { token: spacing/gap/2xsmall, value: 4px }
width: { token: spacing/size/2xsmall, value: 16px }
height: { token: spacing/size/2xsmall, value: 16px }
border-radius: { token: spacing/radius/full, value: 10000px }
pointer-events: { value: none, assert: false }
focus-ring:
notes: "Around the track, keeping the pill's shape."
styles:
display: { value: none, assert: false }
position: { value: absolute }
inset: { value: "calc(-1 * var(--spacing-gap-2xsmall))", untokenised: "Composed from a token: the ring sits spacing/gap/2xsmall outside the track." }
border-style: { value: solid }
border-width: { token: spacing/outline/medium, value: 2px }
border-radius: { token: spacing/radius/full, value: 10000px }
pointer-events: { value: none, assert: false }
variants:
- when: { checked: true }
elements:
track:
outline-color: { token: switch/on/edge, value: "#00d669", notes: "The fill's own green in dark, where the fill already stands out. In light it's a dark green, because the bright fill is 1.9:1 on white." }
thumb:
left: { value: "calc(100% - var(--spacing-size-2xsmall) - var(--spacing-gap-2xsmall))", untokenised: "Composed from tokens: the far end of the track, less the thumb and its 4px." }
- when: { checked: false }
elements:
track:
outline-color: { token: switch/off/edge, value: "#747573", notes: "A field's edge: 4.3:1 on the dark page, 4.5:1 on the light one." }
- when: { state: Focus }
elements:
focus-ring:
display: { value: block, assert: false }
- when: { state: Disabled }
elements:
root:
opacity: { token: opacity/gentle, value: "0.24" }
cursor: { value: default, assert: false }
- when: { state: Default, checked: false }
figmaNode: "528:350"
elements:
background:
background: { token: switch/off/default/track, value: "#3a3a3a" }
opacity: { token: opacity/gentle, value: "0.24" }
thumb:
background: { token: switch/off/default/thumb, value: "#d3d9d5" }
- when: { state: Hover, checked: false }
figmaNode: "528:355"
elements:
background:
background: { token: switch/off/hover/track, value: "#555555" }
opacity: { token: opacity/mild, value: "0.32" }
thumb:
background: { token: switch/off/hover/thumb, value: "#ededed" }
- when: { state: Pressed, checked: false }
figmaNode: "528:360"
elements:
background:
background: { token: switch/off/pressed/track, value: "#282828" }
opacity: { token: opacity/mild, value: "0.32" }
thumb:
background: { token: switch/off/pressed/thumb, value: "#d3d9d5" }
- when: { state: Focus, checked: false }
figmaNode: "528:365"
elements:
background:
background: { token: switch/off/focus/track, value: "#3a3a3a" }
opacity: { token: opacity/gentle, value: "0.24" }
thumb:
background: { token: switch/off/focus/thumb, value: "#d3d9d5" }
focus-ring:
border-color: { token: switch/off/focus/focus-ring, value: "#999" }
- when: { state: Disabled, checked: false }
figmaNode: "528:371"
elements:
background:
background: { token: switch/off/disabled/track, value: "#3a3a3a" }
opacity: { token: opacity/gentle, value: "0.24" }
thumb:
background: { token: switch/off/disabled/thumb, value: "#d3d9d5" }
- when: { state: Default, checked: true }
figmaNode: "528:376"
elements:
background:
background: { token: switch/on/default/track, value: "#00d669" }
opacity: { token: opacity/solid, value: "1" }
thumb:
background: { token: switch/on/default/thumb, value: "#060805" }
- when: { state: Hover, checked: true }
figmaNode: "528:381"
elements:
background:
background: { token: switch/on/hover/track, value: "#00b450" }
opacity: { token: opacity/solid, value: "1" }
thumb:
background: { token: switch/on/hover/thumb, value: "#060805" }
- when: { state: Pressed, checked: true }
figmaNode: "528:386"
elements:
background:
background: { token: switch/on/pressed/track, value: "#00913a" }
opacity: { token: opacity/solid, value: "1" }
thumb:
background: { token: switch/on/pressed/thumb, value: "#060805" }
- when: { state: Focus, checked: true }
figmaNode: "528:391"
elements:
background:
background: { token: switch/on/focus/track, value: "#00d669" }
opacity: { token: opacity/solid, value: "1" }
thumb:
background: { token: switch/on/focus/thumb, value: "#060805" }
focus-ring:
border-color: { token: switch/on/focus/focus-ring, value: "#b6ffda" }
- when: { state: Disabled, checked: true }
figmaNode: "528:397"
elements:
background:
background: { token: switch/on/disabled/track, value: "#00d669" }
opacity: { token: opacity/solid, value: "1" }
thumb:
background: { token: switch/on/disabled/thumb, value: "#060805" }
guidance:
status: agreed
use:
- title: A setting that works at once
text: "A setting that's on or off and works the moment you flip it: email me receipts, show cents, dark charts."
show: state=Default, checked=True
avoid:
- title: A choice that waits for Save
text: A choice that waits for a Save button. That's a checkbox, and Rost doesn't have one yet.
show: state=Default, checked=False
- title: Filtering the screen
text: Filtering what's on screen. That's **Chip**, with `selected`.
- title: A button that stays pressed
text: An icon button that stays pressed, like bold in an editor. That's **Toggle**.
behaviour: |-
Off is a faded track with the thumb on the left, the way an off Toggle is faded. On is a solid primary green track with a dark thumb on the right. Hover, press and focus come from the browser and follow Toggle's colours. Disabled fades it.
I built it in code from Toggle's and Button's tokens, then drew it in the kit, on a page of its own, bound to the same variables. Its label moved to SwitchField on 2026-10-31. The ten variants match Figma.
accessibility:
element: "`<button type=\"button\" role=\"switch\">` with `aria-checked`. Switch sets both."
name: "It has no text of its own. In a SwitchField the label names it; on its own it needs an `aria-label`."
keyboard: "Tab reaches it. Space flips it, and so does Enter, since it's a button."
focus: "`focus-ring` around the track, on `:focus-visible`."
colour: "On and off aren't only green and grey: the thumb moves from one end to the other."
content: "The words go in SwitchField's label, or in `aria-label`. Say what's on when it's on, as a short phrase in sentence case: \"Email me receipts\", not \"Receipts: on/off\"."
Install
npx github:Runceanu/rost add switch It lands in src/rost/switch/, with what it needs and its contract. Install has the rest.
When to use
A setting that works at once
A setting that's on or off and works the moment you flip it: email me receipts, show cents, dark charts.
When not to use
A choice that waits for Save
A choice that waits for a Save button. That's a checkbox, and Rost doesn't have one yet.
Filtering the screen
Filtering what's on screen. That's Chip, with
selected.A button that stays pressed
An icon button that stays pressed, like bold in an editor. That's Toggle.
Behaviour
Off is a faded track with the thumb on the left, the way an off Toggle is faded. On is a solid primary green track with a dark thumb on the right. Hover, press and focus come from the browser and follow Toggle's colours. Disabled fades it. I built it in code from Toggle's and Button's tokens, then drew it in the kit, on a page of its own, bound to the same variables. Its label moved to SwitchField on 2026-10-31. The ten variants match Figma.
Accessibility
- Element
<button type="button" role="switch">witharia-checked. Switch sets both. - Name
It has no text of its own. In a SwitchField the label names it; on its own it needs an
aria-label. - Keyboard
Tab reaches it. Space flips it, and so does Enter, since it's a button.
- Focus
focus-ringaround the track, on:focus-visible. - Colour
On and off aren't only green and grey: the thumb moves from one end to the other.
Content
The words go in SwitchField's label, or in aria-label. Say what's on when it's on, as a short phrase in sentence case: "Email me receipts", not "Receipts: on/off".
Props
| Prop | Type | Values | Default |
|---|---|---|---|
checked | boolean | | false |
States: Default, Hover, Pressed, Focus, Disabled.
Values
Straight from the contract. Each value sits next to its token, because six tokens here all come out as #3a3a3a and the colour alone can't tell you which one is right.
Never changes
root
-
padding0pxspacing/gap/none
displayinline-flex · align-itemscenter · vertical-alignmiddle · positionrelative · backgroundnone · bordernone · fontinherit · cursorpointer · outlinenone
track
-
width40pxspacing/size/medium -
height24pxspacing/size/small -
border-radius10000pxspacing/radius/full -
outline-width1pxspacing/outline/small -
outline-offsetcalc(-1 * var(--spacing-outline-small))on purpose: Composed from a token: the edge sits inside the track.
positionrelative · flex-shrink0 · outline-stylesolid · isolationisolate
background
-
border-radius10000pxspacing/radius/full
positionabsolute · inset0 · pointer-eventsnone · z-index-1
thumb
-
top4pxspacing/gap/2xsmall -
left4pxspacing/gap/2xsmall -
width16pxspacing/size/2xsmall -
height16pxspacing/size/2xsmall -
border-radius10000pxspacing/radius/full
positionabsolute · pointer-eventsnone
focus-ring
-
border-stylesolidno token yet -
border-width2pxspacing/outline/medium -
border-radius10000pxspacing/radius/full
displaynone · positionabsolute · insetcalc(-1 * var(--spacing-gap-2xsmall)) · pointer-eventsnone
Changes by variant
10 variants. Each table is what one thing changes with: a column per checked, a row per property. Where every row starts with the same token path, it's written once, under the property.
Follows checked
Focus
| Property | Not checked | Checked |
|---|---|---|
focus-ring.border-colorswitch/… | off/focus/focus-ring #999 | on/focus/focus-ring #b6ffda |
| Property | Not checked | Checked |
|---|---|---|
track.outline-colorswitch/… | off/edge #747573 | on/edge #00d669 |
Follows state and checked
Not checked
| Property | Default | Hover | Pressed | Focus | Disabled |
|---|---|---|---|---|---|
background.backgroundswitch/off/… | default/track #3a3a3a | hover/track #555555 | pressed/track #282828 | focus/track #3a3a3a | disabled/track #3a3a3a |
background.opacityopacity/… | gentle 0.24 | mild 0.32 | mild 0.32 | gentle 0.24 | gentle 0.24 |
thumb.backgroundswitch/off/… | default/thumb #d3d9d5 | hover/thumb #ededed | pressed/thumb #d3d9d5 | focus/thumb #d3d9d5 | disabled/thumb #d3d9d5 |
Checked
| Property | Default | Hover | Pressed | Focus | Disabled |
|---|---|---|---|---|---|
background.backgroundswitch/on/… | default/track #00d669 | hover/track #00b450 | pressed/track #00913a | focus/track #00d669 | disabled/track #00d669 |
background.opacityopacity/… | solid 1 | solid 1 | solid 1 | solid 1 | solid 1 |
thumb.backgroundswitch/on/… | default/thumb #060805 | hover/thumb #060805 | pressed/thumb #060805 | focus/thumb #060805 | disabled/thumb #060805 |
Only in some variants
These don't change: they're just set in some variants and not others.
Focus
-
focus-ring.displayblocklayout
Disabled
-
root.cursordefaultFigma frame size -
root.opacity0.24opacity/gentle
Checked
-
thumb.leftcalc(100% - var(--spacing-size-2xsmall) - var(--spacing-gap-2xsmall))on purpose: Composed from tokens: the far end of the track, less the thumb and its 4px.
Part of Switch
SwitchField
A Switch with its label beside it, on the left or the right. A click on the words flips it too.
Try it
Every variant
Right · Not disabledLeft · Not disabledRight · DisabledLeft · Disabledimport { SwitchField } from 'rost/components/switch-field/SwitchField'
<SwitchField checked={receipts} onCheckedChange={setReceipts}>
Email me receipts
</SwitchField>
<SwitchField side="left" defaultChecked>Show cents</SwitchField> src/components/switch-field/SwitchField.tsx
import { useId, type HTMLAttributes, type ReactNode } from 'react'
import { Switch } from '../switch/Switch'
import './switch-field.css'
export interface SwitchFieldProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'onChange'> {
/** What it turns on: "Email me receipts". */
readonly children: ReactNode
/** Which side of the switch the label sits. */
readonly side?: 'left' | 'right'
/** On or off, when you control it. */
readonly checked?: boolean
/** Where it starts when it looks after itself. */
readonly defaultChecked?: boolean
/** Called with the new value each time it flips. */
readonly onCheckedChange?: (checked: boolean) => void
/** Disables the switch and fades the label. */
readonly disabled?: boolean
/** The switch's id, if you need it. One is made otherwise. */
readonly switchId?: string
}
const b = 'rost-switch-field'
/**
* A Switch with its label beside it, on the left or the right. The label is a
* `<label for>` the switch, so it names it and a click on it flips it. Built
* from contracts/switch-field.contract.yaml.
*/
export function SwitchField({ children, side = 'right', checked, defaultChecked, onCheckedChange, disabled = false, switchId, className, ...rest }: SwitchFieldProps) {
const made = useId()
const id = switchId ?? made
return (
<span className={[b, `${b}--side-${side}`, disabled && `${b}--disabled`, className].filter(Boolean).join(' ')} {...rest}>
<Switch id={id} className={`${b}__switch`} checked={checked} defaultChecked={defaultChecked} onCheckedChange={onCheckedChange} disabled={disabled} />
<label className={`${b}__label`} htmlFor={id}>{children}</label>
</span>
)
}
The source for everything on this page: contracts/switch-field.contract.yaml (opens in a new tab). The CSS, the docs and the checks in each app are built from it.
# yaml-language-server: $schema=../schema/component-contract.schema.json
schemaVersion: 2
id: switch-field
name: SwitchField
kind: pattern
status: review
partOf: switch
summary: A Switch with its label beside it, on the left or the right. A click on the words flips it too.
category: selection
related: [ switch ]
source:
tool: figma
fileKey: 1Zy0wiWKXQAvsfDBX3KR0d
nodeId: "545:57"
url: https://www.figma.com/design/1Zy0wiWKXQAvsfDBX3KR0d/UI-Kit-v01?node-id=545-57
extractedAt: "2026-10-31"
extractedBy: hand
frozenAt: "2026-10-31"
props:
label: { type: slot, notes: "What it turns on: \"Email me receipts\". In React, the children. It's a `<label>` for the switch, so it's the switch's name and a click on it flips it." }
side: { type: enum, values: [ Left, Right ], default: Right, notes: "Which side of the switch the label sits. Right reads like a checkbox, in a list of settings. Left lines the switches up on the right edge, for a settings panel with long labels." }
switch: { type: node, notes: "A Switch. In React, SwitchField draws it from `checked`, `defaultChecked`, `onCheckedChange` and `disabled`." }
disabled: { type: boolean, default: false, notes: "Disables the switch and fades the label with it." }
elements:
root:
notes: "A row: the switch and its label, centred on each other."
styles:
display: { value: inline-flex, assert: false }
align-items: { value: center }
gap: { token: spacing/gap/small, value: 8px }
vertical-align: { value: middle, assert: false }
switch:
notes: "A Switch, as it is. Its own states do the work: hover, press and focus are the switch's."
styles:
flex-shrink: { value: "0", assert: false }
label:
notes: "A `<label for>` the switch. Paragraph type, in the colour a secondary action's label has. It doesn't change with on and off: the track says that."
styles:
font-family: { token: font-family/base, value: "'General Sans Variable'" }
font-weight: { token: typography/paragraph/font-weight/regular, value: "400" }
font-size: { token: typography/paragraph/font-size, value: 14px }
line-height: { token: typography/paragraph/line-height, value: 20px }
letter-spacing: { token: typography/paragraph/letter-spacing, value: 0px }
color: { token: switch-field/label, value: "#d3d9d5" }
cursor: { value: pointer, assert: false }
variants:
- when: { side: Left }
elements:
root:
flex-direction: { value: row-reverse, assert: false, notes: "The switch comes first in the DOM either way; only where the label is drawn changes." }
justify-content: { value: flex-end, notes: "Packs the pair to the left in a reversed row, so the label starts at the edge like it does on the right." }
- when: { side: Right }
elements:
root:
flex-direction: { value: row, assert: false }
- when: { disabled: true }
elements:
label:
opacity: { token: opacity/gentle, value: "0.24", notes: "The same fade as the disabled switch beside it." }
cursor: { value: default, assert: false }
guidance:
status: agreed
use:
- title: A setting with its name
text: "Any switch that people read before they flip: email me receipts, show cents, dark charts."
show: side=Right, disabled=False
- title: Label on the left
text: "A settings panel where the labels are long: the switches line up down the right edge, where the eye finds them."
show: side=Left, disabled=False
avoid:
- title: A switch with no words
text: "A switch whose meaning comes from what's around it, like a row in a table. Use **Switch** with an `aria-label`."
- title: A label that changes
text: "\"On\" and \"Off\" as the label. The track says that; the label says what it's for."
behaviour: |-
The label is a `<label>` tied to the switch, so a click anywhere on the words flips it, the way a checkbox's label does. Hover, press and focus are the switch's own. Disabled fades both.
I made it when I took the label out of Switch so it could go on either side. In Figma it's on the switch page, next to Switch, with a real Switch instance inside that you can set on or off.
accessibility:
element: "A `<span>` holding the Switch's `<button role=\"switch\">` and a `<label for>` it."
name: "The label. SwitchField ties the two with an id, so you don't."
keyboard: "The switch's: Tab reaches it, Space and Enter flip it."
focus: "The switch's ring, around the track."
content: "A short phrase in sentence case, saying what's on when it's on: \"Email me receipts\", not \"Receipts: on/off\"."
Install
npx github:Runceanu/rost add switch-field It lands in src/rost/switch-field/, with what it needs and its contract. Install has the rest.
When to use
A setting with its name
Any switch that people read before they flip: email me receipts, show cents, dark charts.
Label on the left
A settings panel where the labels are long: the switches line up down the right edge, where the eye finds them.
When not to use
A switch with no words
A switch whose meaning comes from what's around it, like a row in a table. Use Switch with an
aria-label.A label that changes
"On" and "Off" as the label. The track says that; the label says what it's for.
Behaviour
The label is a <label> tied to the switch, so a click anywhere on the words flips it, the way a checkbox's label does. Hover, press and focus are the switch's own. Disabled fades both.
I made it when I took the label out of Switch so it could go on either side. In Figma it's on the switch page, next to Switch, with a real Switch instance inside that you can set on or off.
Accessibility
- Element
A
<span>holding the Switch's<button role="switch">and a<label for>it. - Name
The label. SwitchField ties the two with an id, so you don't.
- Keyboard
The switch's: Tab reaches it, Space and Enter flip it.
- Focus
The switch's ring, around the track.
Content
A short phrase in sentence case, saying what's on when it's on: "Email me receipts", not "Receipts: on/off".
Props
| Prop | Type | Values | Default |
|---|---|---|---|
label | slot | | |
side | enum | Left · Right | Right |
switch | node | | |
disabled | boolean | | false |
Values
Straight from the contract. Each value sits next to its token, because six tokens here all come out as #3a3a3a and the colour alone can't tell you which one is right.
Never changes
root
-
gap8pxspacing/gap/small
displayinline-flex · align-itemscenter · vertical-alignmiddle
switch
flex-shrink0
label
-
font-family'General Sans Variable'font-family/base -
font-weight400typography/paragraph/font-weight/regular -
font-size14pxtypography/paragraph/font-size -
line-height20pxtypography/paragraph/line-height -
letter-spacing0pxtypography/paragraph/letter-spacing -
color#d3d9d5switch-field/label
cursorpointer
Changes by variant
3 variants. Each table is what one thing changes with: a column per side, a row per property. Where every row starts with the same token path, it's written once, under the property.
Follows side
All but Disabled
| Property | Left | Right |
|---|---|---|
root.flex-direction | row-reverse | row |
Only in some variants
These don't change: they're just set in some variants and not others.
Disabled
-
label.cursordefaultFigma frame size -
label.opacity0.24opacity/gentle
Left
-
root.justify-contentflex-endlayout