Toggle

A two-state on/off button for a formatting mark, view option, or setting.

Stablev0.3.0@garn/ui/toggle

Default

An icon + text toggle.

Appearance

Fill treatment: `ghost` is borderless; `outline` adds a bordered, raised surface.

Ghost

ghost

Outline

outline

Sizing

Height rung (--garn-control-h-*); min-width matches so icon-only toggles stay square.

sm
md
lg

Spacing

The same control rendered across garn's density modes — compact, default, and spacious.

Compact
Default
Spacious

States

Interactive states, toggled live.

usage
<Toggle>B</Toggle>

State