Switch

Switches allow users to toggle between two states.

Prop
Type
Default value
Prop
label
Type
ReactNode
Default value
""
Prop
orientation
Type
"vertical" | "horizontal"
Default value
"vertical"
Prop
dir
Type
"start" | "end"
Default value
"start"
Prop
checked
Type
boolean
Default value
false
Prop
disabled
Type
boolean
Default value
false
Prop
onChange
Type
onChange: (checked: boolean) => void
Default value
""

States

Layout

© 2025 ClickHouse, Inc. HQ in the Bay Area, CA and Amsterdam, NL.