@apify/docsearch-apify-docs
TypeScript icon, indicating that this package has built-in type declarations

3.5.3 • Public • Published

Watch out!

This is a fork of the DocSearch project! It contains tweaks specific to the Apify Docs search, so it's most likely not what you are looking for. If you want to use DocSearch on your website, please use the original repository.


@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 don’t 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 →

Readme

Keywords

none

Package Sidebar

Install

npm i @apify/docsearch-apify-docs

Weekly Downloads

2

Version

3.5.3

License

MIT

Unpacked Size

539 kB

Total Files

110

Last publish

Collaborators

  • apify-service-account
  • mtrunkat
  • jancurn
  • petrpatek
  • mnmkng
  • jaroslavhejlek
  • drobnikj
  • metalwarrior665
  • fnesveda
  • b4nan