1
0
Fork 0
docsearch/packages/docsearch-react
2025-09-16 08:54:50 -04:00
..
src chore: release v4.0.0 (#2757) 2025-09-15 17:44:14 +02:00
style chore: move docsearch-react to packages 2020-09-01 11:36:46 +02:00
babel.config.mjs chore(deps): dependencies 2024-11-04 (#2335) 2024-11-04 18:15:51 +01:00
button.js fix #2230 - prevent babel helpers duplication and condense bundle & types (#2278) 2024-07-16 10:58:22 -06:00
modal.js fix #2230 - prevent babel helpers duplication and condense bundle & types (#2278) 2024-07-16 10:58:22 -06:00
package.json fix(deps): Adds zod to dependency list (#2759) 2025-09-16 08:54:50 -04:00
README.md chore: Promote DocSearch v4 from Beta to Stable (#2752) 2025-09-15 16:41:59 +02:00
rollup.config.js feat: a11y and ux tweaks (#2712) 2025-08-14 20:04:30 +02:00
tsconfig.declaration.json fix: upgrade algoliasearch to v5 (#2326) 2024-10-30 15:46:38 +01:00

@docsearch/react

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

Installation

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

If you dont want to use a package manager, you can use a standalone endpoint:

<script src="https://cdn.jsdelivr.net/npm/@docsearch/react@4"></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 →