Skip to content

Files

Latest commit

ec35171 · Mar 14, 2025

History

History

docsearch-react

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Mar 14, 2025
Sep 1, 2020
Oct 30, 2024
Nov 4, 2024
Jul 16, 2024
Jul 16, 2024
Mar 5, 2025
Nov 4, 2024
Oct 30, 2024

@docsearch/react

React package for DocSearch, the best search experience for docs.

Installation

yarn add @docsearch/react@3
# or
npm install @docsearch/react@3

If you don’t want to use a package manager, you can use a standalone endpoint:

<script src="https://cdn.jsdelivr.net/npm/@docsearch/react@3"></script>

Get started

DocSearch generates a fully accessible search box for you.

import { DocSearch } from '@docsearch/react';

import '@docsearch/css';

function App() {
  return (
    <DocSearch
      appId="YOUR_APP_ID"
      indexName="YOUR_INDEX_NAME"
      apiKey="YOUR_SEARCH_API_KEY"
    />
  );
}

export default App;

Documentation

Read documentation →