Add Search Bar to Fumadocs
Enhance your Fumadocs documentation with Inkeep's intelligent search bar for fast, accurate content discovery and improved user experience.
What is Fumadocs
Fumadocs is an open source documentation framework, powered by Next.js App Router.
Get an API key
Follow these steps to create an API key for your web integration.
Option 1: Replace the built-in search dialog with Inkeep
This method allows you to replace the default Search Dialog with Inkeep, see here for more information.
You will need to replace REPLACE_WITH_YOUR_INKEEP_API_KEY
with your actual
Inkeep API key in the code below.
Create a search.tsx
client component in your components
directory.
To pass it to the Root Provider, you need a wrapper with use client directive. Create a provider.tsx
file.
Use it instead of your previous Root Provider in your root layout.tsx
file.
Option 2: Add the SearchBar to a custom nav or sidebar component
Use this option if you have created a custom nav or sidebar component.
You will need to replace REPLACE_WITH_YOUR_INKEEP_API_KEY
with your actual
Inkeep API key in the code below.
Create a searchbar.tsx
client component in your Fumadocs project.
Then import it into your navbar or sidebar component.
For a full list of customizations, check out the Search Bar documentation.