CommandPalette
Cmd+K style command palette with lexical search, sectioned results and full keyboard navigation.
npx @slipstream-ui/cli@latest add command-palettePlayground
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| open | boolean | required | Controlled visibility |
| onOpenChange | (open: boolean) => void | required | Open/close requests |
| commands | Command[] | required | { id, label, section?, keywords?, shortcut? } |
| onSelect | (command: Command) => void | required | Chosen command handler |
| placeholder | string | Type a command… | Input placeholder |
Accessibility
- Combobox pattern with aria-expanded, aria-controls and aria-activedescendant
- Arrow keys cycle options, Enter selects, Escape closes; focus stays in the input
- Options are role=option with aria-selected marking the active item
Browser support
| Browser | Tested versions |
|---|---|
| Chrome | 111+ (Mar 2023) |
| Edge | 111+ (Mar 2023) |
| Firefox | 121+ (Dec 2023) |
| Safari | 17.2+ — macOS & iOS (Dec 2023) |
Slipstream components rely only on CSS custom properties, Flexbox/Grid, and ARIA — the everyday baseline of the last two years of evergreen releases. Anything newer is progressive enhancement: unsupported browsers keep full functionality with static behavior instead of animations.