0.8.7 • Published 6 months ago
chainlink-algolia-search v0.8.7
chainlink-algolia-search
This package provides a search component that integrates with Algolia indexes.
To install:
npm install chainlink-algolia-search
Invoke the component (and the styles):
import { SearchButton } from "chainlink-algolia-search";
import aCardImgBackground from "./assets/card-background.png";
// Don't forget to import the styles as well!
import "chainlink-algolia-search/dist/index.css";
...
function App() {
return (
<>
<SearchButton
algoliaAppId="<your app ID here>"
algoliaPublicApiKey="<the public API key>"
categoryOrder={["Guide", "Video"]} // optional: priority list for showing the category filters
popularLinks={[ // optional: a list of popular links displayed on the default state modal
{ label: 'Example', url: 'https://example.com' },
]}
popularCards={[ // optional: a list of popular cards displayed on the default state modal (up to 2)
{ imgSrc: aCardImgBackground, label: 'Example', url: 'https://example.com' }
]}
/>
</>
);
}
export default App;
0.8.7
6 months ago
0.8.6-2
6 months ago
0.8.6-1
6 months ago
0.8.6-0
6 months ago
0.8.4
6 months ago
0.7.2
6 months ago
0.8.0
6 months ago
0.7.1
6 months ago
0.8.3
6 months ago
0.8.2
6 months ago
0.7.3
6 months ago
0.6.3
6 months ago
0.6.2
6 months ago
0.7.0
6 months ago
0.6.1
6 months ago
0.6.0
6 months ago
0.3.0
6 months ago
0.2.0
6 months ago
0.5.4
6 months ago
0.5.3
6 months ago
0.5.5
6 months ago
0.5.0
6 months ago
0.4.1
6 months ago
0.4.0
6 months ago
0.5.2
6 months ago
0.5.1
6 months ago
0.4.2
6 months ago
0.1.0
7 months ago