Lab

Command bar

Slant / Controls

A command palette: type to filter, arrow through the matches, press Enter to run one.

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

Usage

  • The input is a combobox controlling a listbox of options.
  • Filtering is a plain substring match over the command names.

Keyboard

Typefilters the commands
↑ / ↓moves the highlighted command
Enterruns the highlighted command

Accessibility

  • aria-selected tracks the highlighted option; the input names the list it controls.

Command bar in React and SwiftUI.

Source

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