jccp_a/vuepress/node_modules/@docsearch/react
hellcat ac91e1fbe4 1
2025-11-12 17:57:30 +08:00
..
dist 1 2025-11-12 17:57:30 +08:00
style 1 2025-11-12 17:57:30 +08:00
button.js 1 2025-11-12 17:57:30 +08:00
modal.js 1 2025-11-12 17:57:30 +08:00
package.json 1 2025-11-12 17:57:30 +08:00
README.md 1 2025-11-12 17:57:30 +08:00
useDocSearchKeyboardEvents.js 1 2025-11-12 17:57:30 +08:00
useTheme.js 1 2025-11-12 17:57:30 +08:00
version.js 1 2025-11-12 17:57:30 +08: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 →