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
| Prop | Type | Default | Description |
|---|---|---|---|
| open | boolean | false | Controlled open state of the modal. |
| onOpenChange | function | - | Callback when open state changes. |
| actions | ActionItem[] | - | List of actions to display. |