Toggle

A two-state button that can be on or off.

Default

Variants

Sizes

Disabled

Props

PropTypeDefaultDescription
variant"default" | "outline""default"Visual style.
size"sm" | "default" | "lg""default"Size of the toggle.
pressedbooleanControlled pressed state.
onPressedChange(pressed: boolean) => voidCallback when pressed state changes.