0.8.7 • Published 4 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
4 months ago
0.8.6-2
4 months ago
0.8.6-1
4 months ago
0.8.6-0
4 months ago
0.8.4
5 months ago
0.7.2
5 months ago
0.8.0
5 months ago
0.7.1
5 months ago
0.8.3
5 months ago
0.8.2
5 months ago
0.7.3
5 months ago
0.6.3
5 months ago
0.6.2
5 months ago
0.7.0
5 months ago
0.6.1
5 months ago
0.6.0
5 months ago
0.3.0
5 months ago
0.2.0
5 months ago
0.5.4
5 months ago
0.5.3
5 months ago
0.5.5
5 months ago
0.5.0
5 months ago
0.4.1
5 months ago
0.4.0
5 months ago
0.5.2
5 months ago
0.5.1
5 months ago
0.4.2
5 months ago
0.1.0
5 months ago