All components

Toggle

A two-state button that stays pressed, in ghost and outline styles matched to Button.

Variants

ghost
outline

Sizes

xs
sm
md
lg

Indicator

Toggle.Indicator swaps its content with the pressed state: children while pressed, fallback while off.

Palette

A palette tints the pressed fill and text.

Disabled

A disabled toggle keeps its pressed state but ignores clicks.

Install

Source

components/ui/ark-ui/toggle.tsx