Command
Organism
Cmd+K search: navigation, actions, recent items.
Playground
Every control sets a real prop of CommandProps. The JSX below updates as you go.
Web
iOS
Android
JSX · CommandProps
Variants
4 examples from src/organisms/command/command.md, each rendered live from its own JSX.
Anatomy
1
Panel
2
Search field
3
Group label
4
Item
5
Active item
6
Footer hints
Dimmed parts appear only in some states or variants.
Props
21 props on CommandProps, grouped as they are declared in source. Required props are marked *.
Accessibility and keyboard
Keyboard
ArrowDown
Opens the list
ArrowUp
ArrowDown
Moves through options
Enter
Commits the active option
Escape
Closes the list, keeps the text
Semantics
Roles
button
group
option
search
States
expanded
selected
ARIA on web
aria-activedescendant
aria-controls
aria-expanded
aria-label
aria-selected
Below the platform minimum, the touch area grows to 44 pt on iOS and 48 dp on Android without moving the layout.
From the docs
In glass mode the triggered palette is a functional-layer glass card under the search bar, with its own search field; the search editor keeps focus while typing filters the rows. Solid mode paints the skin's own palette.
The search row is a real input: typing filters the grouped rows to the matching labels, and a query that matches nothing shows a muted "No results" row.
Use embedded inside a Dialog or Drawer to inherit its surface and fill its bounds. It has no effect when trigger is set. Long results scroll within the palette. autoFocus focuses the inline field after the containing overlay captures its opener, so closing restores the original control. onKeyPress runs before built-in navigation; call preventDefault() to handle an application shortcut.
Platform skins
The playground's props on each platform: same tree, native shapes, type and touch sizes.
Usage
The search row is a real input: typing filters the grouped rows to the matching labels, and a query that matches nothing shows a muted "No results" row.
On every platform the palette is the v4 card: 520 wide at an 18-pixel corner, a 48-pixel search row with an esc cap over a hairline, mono eyebrows over 38-pixel rows (44 on iOS, 48 on Android) with quiet icons and mono shortcuts, the accent's soft wash under the active row, and an optional footer of mono hints. Neither iOS nor Android ships a command palette, so both take this look in their own face.
In glass mode the triggered palette is a functional-layer glass card under the search bar, with its own search field; the search editor keeps focus while typing filters the rows. Solid mode paints the skin's own palette.
Tokens
Read from the playground render. Values follow the scheme and the ion hue.
--bf
--bg2
--fd
--fm
--ft
--gl
--ion-soft
--ion-tx
--ln
--ln2
--scrim
--sf3
--sh-lg
--tx
--tx3