Default Layout
Search
In this section, we'll look at how you can set up a search input field so users can quickly navigate through your documentation.
Slot
The default layout supports a search slot which will be positioned at the top of the sidebar. You can set it like so:
Algolia
We've prebuilt an Algolia search component and cleaned up the default styles. Head over to the Algolia Docsearch application form and apply for an API key. Next, follow the instructions below to get set up.
Install Docsearch
Install all Algolia Docsearch dependencies via NPM.
Import Styles
Import all Algolia Docsearch styles into your layout file.
Import Component
Import the
Algolia
component into your layout file.Add Markup
Add the
<Algolia>
component to your markup and also set thesearch
prop on<KitDocsLayout>
.