system-prompts-and-models-o.../node_modules/@docsearch/react
2025-10-11 23:05:08 +08:00
..
dist feat: Finalize VitePress site structure and styling 2025-10-11 23:05:08 +08:00
style feat: Finalize VitePress site structure and styling 2025-10-11 23:05:08 +08:00
button.js feat: Finalize VitePress site structure and styling 2025-10-11 23:05:08 +08:00
modal.js feat: Finalize VitePress site structure and styling 2025-10-11 23:05:08 +08:00
package.json feat: Finalize VitePress site structure and styling 2025-10-11 23:05:08 +08:00
README.md feat: Finalize VitePress site structure and styling 2025-10-11 23:05:08 +08: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 →