* feat(askai): Initial ai-sdk v5 work * Add sdk version header, code cleanup * feat(askai): Get ai sdk v5 working * fix: tests bundlesize * fix: not all streaming states were showing * fix: Show reasoning state, fix CSS issues, extract link sources for multiple text parts * Remove important for removing text decoration |
||
|---|---|---|
| .. | ||
| src | ||
| style | ||
| babel.config.mjs | ||
| button.js | ||
| modal.js | ||
| package.json | ||
| README.md | ||
| rollup.config.js | ||
| tsconfig.declaration.json | ||
@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;