Skip to main content
  1. Docs
  2. Components
  3. Actions

Toggle

A tool that's pressed or not. With only an icon, its name shows as its tooltip.

Import
@qeetrix/react
Status
StableSince 0.0.2
Renders
<button aria-pressed>Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

0.3.0

  • icon takes an element as well as a component (icon={<PlusIcon />}), so a Server Component can pass one: its type is IconSource.

02

0.1.0

  • tooltip and tooltipSide, for an icon-only toggle's tooltip.

03

0.0.2

  • Toggle, on Base UI's Toggle: pressed state with onPressedChange; filledWhenPressed.
  • Forced colours: a pressed toggle draws in Highlight.

Every change to @qeetrix/react

Next — ActionsToggle group