Docs / Components / Command Palette

Command Palette

A Cmd+K command palette modal with fuzzy search, keyboard navigation, and recent items. Scales and fades in.

Dependencies

Install the following dependencies to use this component:

1npm install motion react-icons clsx tailwind-merge

Installation

Run the following command in your terminal to add the component to your project:

1npx rankflow-ui@latest add command-palette

Props Reference

PropTypeDefaultDescription
openbooleanfalseControlled open state of the modal.
onOpenChangefunction-Callback when open state changes.
actionsActionItem[]-List of actions to display.