Shadcn Command Menu
A command menu adapted from shadcn/ui, designed to work seamlessly with Fumadocs and enhanced with Revola's responsive behavior.
Overview
The Shadcn Command Menu is a searchable command palette that helps users quickly navigate your documentation built with Fumadocs.
This version is adapted from the original shadcn/ui Command Menu, with a few enhancements and tighter integration with Revola for responsive behavior and improved reliability.
Installation
Usage
Create the Menu Component
Since pageTree
is a server-side value, retrieve it and pass it (along with the color palette) to the component in a client-safe wrapper.
You're all set! Enjoy the enhanced command menu experience.
Note
There’s a known issue: if a valid search result is found, everything works correctly (including showing the secondary action).
However, if you change the search query to something that doesn't match any item, the secondary action still appears, even though it shouldn't.