Capítulo 35 de 43
A single two-state (on/off) button — the simplest pressed/unpressed control in the library, one part, no coordination with siblings.
Toggle.Root — pressed/defaultPressed, onPressedChange, disabled.[data-state]: "on" | "off" — style directly off this instead of tracking pressed state separately in your component's own class logic.Toggle for a single independent on/off button (e.g. a bold/italic formatting button); reach for ToggleGroup as soon as you have more than one related toggle button that should coordinate.Space/Enter both activate it — standard button keyboard behavior, no extra wiring needed.