React components by InboundLabs
yarn add https://github.com/InboundLabsI/per-react-components#v1.2.12
import React from "react";
import { Contact, Products, Search } from "@inboundlabs/per-react-components";
const searchOptions = {
algoliaAppID: "", // Algolia Application ID | required
algoliaSearchKey: "", // Algolia search-only API key | required
algoliaIndices: [], // Array of Algolia index names | required
headerHeight: "", // Height of the Navigator container (header), in px. | optional
hsPortalId: "", // Hubspot Portal ID, where to search pages and blog
};
const productsOptions = {
algoliaAppID: "", // Algolia Application ID, required
algoliaSearchKey: "", // Algolia search-only API key | required
algoliaIndexName: "", // Algolia index name | required
};
const contactOptions = {
ticketSubmissionURL: "", // URL for ticket submission link. | optional
salesContactFormId: "", // Sales rep contact HS form id. | optional
salesContactPortalId: "", // Sales rep contact HS portal id. | optional
supportUrl: "", // URL for support menu item. | optional
registerURL: "", // URL for register product menu item. | optional
headerHeight: "", // Height of the Navigator container (header), in px. | optional
showTel: "", // Show support phone number in Contact dropdown, | optional | string (phone number)
};
const Example = () => {
return (
<div className="example-navigator">
<Search {...searchOptions} />
<Products {...productsOptions} />
<Contact {...contactOptions} />
</div>
);
};
MIT © milukove