Socket
Book a DemoInstallSign in
Socket

@docsearch/react

Package Overview
Dependencies
Maintainers
4
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@docsearch/react

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

Source
npmnpm
Version
4.0.0-beta.8
Version published
Weekly downloads
951K
58.45%
Maintainers
4
Weekly downloads
 
Created
Source

@docsearch/react

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

Installation

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

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@beta"></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 →

FAQs

Package last updated on 28 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts