Heading fonts

Choose a Google Fonts family. The selected font loads from Google Fonts; Inter and Geist Serif are bundled locally.

Search Reflow

Keyboard shortcuts

Use these keys while you are not typing in a field.

Search⌘K
Cycle themeT
Cycle accentA
Cycle heading fontF
Cycle radiusR
Cycle sizeS
Cycle iconsI
Cycle hoverH
Toggle navigation[
Toggle properties]
Previous / next demo slide←→
Show shortcuts?
Skip to content
Open navigationClose navigation

Make them yours

Theme
SystemT
Accent
BlueA
Heading font
InterF
Radius
RoundedR
Size
DefaultS
Icons
LucideI
Hover
FluidH

Playground variant

Switch

Switch

A native switch with an animated thumb and label.

Installation

Import from the Reflow workspace package.

Playground

Open demo

Disabled

Controlled

Notifications disabled

API Reference

Public props for the Reflow implementation. Native controls also accept their standard HTML attributes and Remix event mixes.

Switch

PropTypeDefaultDescription
disabledboolean—The `disabled` HTML attribute.
namestring—The `name` HTML attribute.
valuestring | number—The `value` HTML attribute.
size"default" | "compact"—Control density or icon-button dimensions.
checkedboolean—The `checked` HTML attribute.
defaultCheckedboolean—The `defaultChecked` HTML attribute.
defaultValuestring | number—The `defaultValue` HTML attribute.
placeholderstring—The `placeholder` HTML attribute.
requiredboolean—The `required` HTML attribute.
labelRemixNode—Accessible name or visible label for the control.
onCheckedChange((checked: boolean, event: Event) => void)—Called when the checked state changes.