1
0
Fork 0
docsearch/packages/docsearch-sidepanel/README.md
2026-08-06 18:23:58 -04:00

49 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# @docsearch/sidepanel
React package for [DocSearch Sidepanel](http://docsearch.algolia.com/), a standalone Ask AI chat panel.
## Installation
```bash
# or
npm install @docsearch/core@5 @docsearch/sidepanel@5 @docsearch/css@5
```
If you dont want to use a package manager, you can use a standalone endpoint:
```html
<script src="https://cdn.jsdelivr.net/npm/@docsearch/sidepanel-js"></script>
```
## Get started
DocSearch Sidepanel generates a fully accessible Ask AI chat panel for you.
```jsx App.js
import { DocSearch } from '@docsearch/core';
import { SidepanelButton, Sidepanel } from '@docsearch/sidepanel';
// Or using individual imports:
// import { Sidepanel } from '@docsearch/sidepanel/sidepanel';
// import { SidepanelButton } from '@docsearch/sidepanel/button';
import '@docsearch/css/dist/style.css';
import '@docsearch/css/dist/sidepanel.css';
function App() {
return (
<DocSearch>
<SidepanelButton />
<Sidepanel
appId="YOUR_APP_ID"
apiKey="YOUR_SEARCH_API_KEY"
agentId="YOUR_AGENT_ID"
/>
</DocSearch>
);
}
```
## Documentation
[Read documentation →](https://docsearch.algolia.com/docs/packages/sidepanel/getting-started)