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/ui-sdk/toggle.tsx

Examples

Installable blocks built with Toggle — real use cases, delivered as source you own.

Card Grid

Searchable, categorized pattern and starter-kit library with category toggles, saved bookmarks, a sort menu, grouped responsive card sections, and an interactive detail preview dialog.