fndn/ui

Components

Toggle Group

Beta

A row of toggle buttons where one or several stay pressed.

Details

A row of Toggles where one stays pressed (text alignment, a view) or, multiple, several (bold, italic, underline). Each item is the Toggle: the same looks, sizes, shapes, square and muted, the same pressed fill; icon-only items are named and tipped by their labels (a Tooltip). One tab stop, arrow keys move between the items, Space / Enter press. Unlike the segmented control there is no track and no sliding thumb, and nothing has to be pressed. Behaviour by Ark UI's toggle-group (Zag). Controlled or uncontrolled.

Behaviour from Ark UI, the toggle-group machine of Zag.