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
menuwithmenuitemcheckboxandmenuitemradioitems; aseparatorbetween groups.
Keyboard
| ↑ / ↓ | moves between items |
| Home / End | jumps to the first or last item |
| Letters | jump to the next item that starts with them |
| Enter / Space | toggles or picks the item |
| Escape | closes the menu and returns to its button |
| Tab | closes the menu and moves on |
Accessibility
- Checked state is exposed with
aria-checked.
Menu in React and SwiftUI.
The React tab is the component’s real source; the SwiftUI tab is its twin in TUTTNKit.