Lab

Menu

Slant / Components

A menu with checkable and radio items, separators, and full keyboard control.

The theme follows the link: share a page with ?theme=moon.

Usage

  • menu with menuitemcheckbox and menuitemradio items; a separator between groups.

Keyboard

↑ / ↓moves between items
Home / Endjumps to the first or last item
Lettersjump to the next item that starts with them
Enter / Spacetoggles or picks the item
Escapecloses the menu and returns to its button
Tabcloses the menu and moves on

Accessibility

  • Checked state is exposed with aria-checked.

Menu in React and SwiftUI.

Source

The React tab is the component’s real source; the SwiftUI tab is its twin in TUTTNKit.