1
0
Fork 0
docsearch/packages/docsearch-react
2024-09-27 16:22:41 +02:00
..
src chore: release v3.6.2 (#2310) 2024-09-27 16:22:41 +02:00
style chore: move docsearch-react to packages 2020-09-01 11:36:46 +02:00
babel.config.js chore: ignore no-commonjs lint rule for config files 2020-11-12 17:32:52 +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 chore: release v3.6.2 (#2310) 2024-09-27 16:22:41 +02:00
README.md chore: release v3.0.0 (#1311) 2022-02-22 12:52:15 +01:00
rollup.config.js fix #2230 - prevent babel helpers duplication and condense bundle & types (#2278) 2024-07-16 10:58:22 -06:00
tsconfig.declaration.json chore: update TypeScript 2020-11-25 11:37:58 +01:00

@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 dont 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 →