Command with recent and favorites sections
For AI Agents
Hand your agent this brief or the ReUI MCP, not a screenshot. Free to install.
Best for: A jump list of starred favorites, recent pages stamped 2m to 2h ago and help links, opened as Search Everything
When to use
- Keyboard driven palettes in a modal that search actions, pages and settings from one input
- Search lists of files, team members, favorites and recent pages that narrow as the user types
- Inline menus kept open in a card or panel, with grouped rows and keyboard shortcut hints
When not to use
- A palette of create, navigate and system tasks with shortcut hints: use the Command Action Palette example
- A form field that keeps the option the user picks, such as a country or an assignee: use the Combobox component
- A complete product layout with sidebar navigation, where search is only one of its parts: use the App Shell blocks
- A top bar above your page with brand, menus and alerts, where search sits beside them: use the Navbar blocks
Agent notes
- The Recent rows hard code 2m ago to 2h ago in a
data-slotcommand-shortcut div; feed them from your own visit history - A wrapper with
data-slotset to command-shortcut hides the trailing check ofCommandItem, which keeps the time at the right edge - No example gives a
CommandItema select handler, so pressing Enter or clicking a row runs nothing until you add one CommandListstops at 18rem tall in every style and scrolls the rows past that height inside itself
Third-party API docs
- cmdk v1: API reference, docs, through shadcn Command
https://reui.io/components/command/c-command-8.mdget_example("c-command-8")npx shadcn@latest add @reui/c-command-8About Shadcn Command Recent & Favorites
Command with recent and favorites sections. Built by composing Button, Command. A free, open source shadcn command example you can install with npx shadcn@latest add @reui/c-command-8 and edit as your own code.
What You Can Build With Shadcn Command Recent & Favorites
- Composes Button, Command, so it drops into any project already using those components.
- Install it with the shadcn CLI: npx shadcn@latest add @reui/c-command-8
- Open source and free, with the full source on this page to copy or adapt.
More Shadcn Command Examples
- Basic Basic command
- Shortcuts Command with shortcuts
- Groups Command with groups
- Many Groups Command with many groups
- File Search File search command palette
- User Search User search command with avatars
- Action Palette Action palette with keyboard shortcuts
Related Shadcn Component Categories
Open-source shadcn context menu components for right-click menus, file actions, and table row actions.
Open-source shadcn data grid components for sorting and filtering, virtualized tables, and admin dashboards.
Open-source shadcn date selector components for date range picking, booking windows, and calendar filters.
Open-source shadcn dialog components for modal forms, focused tasks, and confirmations.
Open-source shadcn drawer components for mobile panels, slide-over forms, and secondary workflows.
Open-source shadcn dropdown menu components for action menus, profile menus, and toolbar menus.
Frequently Asked Questions
When should I use Shadcn Command Recent & Favorites?
Use it for a jump list of starred favorites, recent pages stamped 2m to 2h ago and help links, opened as Search Everything.
Shadcn Command as a whole fits:
- Keyboard driven palettes in a modal that search actions, pages and settings from one input
- Search lists of files, team members, favorites and recent pages that narrow as the user types
- Inline menus kept open in a card or panel, with grouped rows and keyboard shortcut hints
For a palette of create, navigate and system tasks with shortcut hints, use the Command Action Palette example. For a form field that keeps the option the user picks, such as a country or an assignee, use the Combobox component. For a complete product layout with sidebar navigation, where search is only one of its parts, use the App Shell blocks. For a top bar above your page with brand, menus and alerts, where search sits beside them, use the Navbar blocks.
How do I install Shadcn Command Recent & Favorites?
Is Shadcn Command Recent & Favorites free to use?
Which components does Shadcn Command Recent & Favorites use?
Start building with ReUI Pro today.
Every Pro block, every style, and every future addition, with one license for unlimited projects.
From $249, once. Lifetime updates.