
Description
react-command-palette is a React component for a command palette, the search box popup that lets people find and run actions by typing, as used in editors like Atom and Sublime. You pass it a list of commands, and users open the palette and type to filter them. The component is WAI-ARIA compliant, so it is built to work with screen readers and keyboard navigation. It can be shown as a centered modal, which is the default, or rendered inline within the page content. You can add a header description, set placeholder text for the input, and choose a keyboard shortcut for opening and closing the palette. Other props close the palette after a selection, reset the query each time it opens, and show suggestions even when the input is not focused. The repository includes a Storybook playground with live examples. To run it, clone the repository, install dependencies, run the Storybook script and open localhost port 6006.…
Highlights
- Command palette component for React
- WAI-ARIA compliant for screen readers and keyboards
- Modal or inline display
- Keyboard shortcut for opening and closing
- Storybook playground with live examples
Ratings & Reviews
No ratings yet
Be the first to rate react-command-palette.
People also visit
react-command-palette FAQ
What is react-command-palette?
A React component that shows a searchable command list, like the command palettes in Atom and Sublime.
Is it accessible?
The README says it is WAI-ARIA compliant, which covers screen reader and keyboard support.
Can it show inline instead of as a popup?
Yes. Set the mode to inline to render the palette within the page content, instead of the default centered modal.
What can I customize?
The placeholder text, a header description, the keyboard shortcut, and whether the palette closes after a selection or resets its query when it opens.
How do I see examples?
Clone the repository, run npm install and npm run storybook, then visit localhost port 6006 for the live playground.
What are the best react-command-palette alternatives?
Popular alternatives to react-command-palette include kbar, cmdk and react-autosuggest. See all react-command-palette alternatives














