Actions Toggle

Components

Toggle

A pressed/unpressed button for modes and formatting.

Default

Sizes, labels, spacing & states

Size — sm, default, lg (Toggle and ToggleGroup)

Disabled — whole toggle or a single group item

Spacing — gap between items via the spacing prop

Vertical — orientation="vertical"

With Label — the label is children, not a label prop (icon optional)

Custom — pill items with an accent pressed state

With Label — pass the label as children (not a label prop), optionally alongside an icon.

Markdown for agents: /design/toggle.md · spec: /design.md