@mycoverai/mca-react-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.7.0 • Public • Published

MyCover.ai React SDK

Official MyCover.ai SDK. Supercharge your product with MyCover AI Insurance offerings. Create embedded insurance offerings or full white label insurance applications that excite your customers.

Installation

With NPM

npm install @mycoverai/mca-react-sdk

From CDN

<script src="https://unpkg.com/@mycoverai/mca-react-sdk/dist/umd.js"></script>

Usage

With NPM

//import package
import {Mca} from '@mycoverai/mca-react-sdk'


//import in your template & setup your business configuration by supplying your client id. If product_id is not provided or is an empty array, the SDK will display a list of insurance products for the customer to choose from. You can supply an array of strings, where each string represents an insurance product id, for the user to select from.
<Mca clientId='olakunle@mycovergenius.com' productId={['a72c4e3c-e868-4782-bb35-df6e3344ae6c']} onClose={close} callback={callback} form={{first_name: 'Fred', last_name: 'Ebho'}}  />

With CDN

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @mycoverai/mca-react-sdk

Weekly Downloads

4

Version

0.7.0

License

MIT

Unpacked Size

15.8 kB

Total Files

15

Last publish

Collaborators

  • mycovergenius