Toggle
A two-state icon button that stays pressed or unpressed when clicked.
Basic
Show codeHide code
Sizes
The magnitude axis (sm, md, lg) scales both the button and its glyph.
Show codeHide code
States
A toggle can start pressed via defaultPressed, and a disabled toggle does not respond to clicks.
Show codeHide code
Controlled
Own the state with pressed and onPressedChange to derive the glyph from it.
Show codeHide code
Installation
import { Toggle } from "@makeplane/propel/components/toggle";