fndn/ui

Components

Toggle

Beta

A button that stays pressed, such as Bold in a text toolbar.

Details

A button that stays pressed: bold in a text toolbar, pin, follow, the open view of an activity bar. It is the Button (same sizes, shapes, square and muted, ghost and outline looks) whose pressed state keeps the darker fill, the way an open ghost button does. Icon-only toggles are named by a Tooltip. Controlled or uncontrolled.

Behaviour from Ark UI, the toggle machine of Zag.