stere-insurance-sdk
v0.2.6
Published
SDK to embed insurance in less than 15 mins
Downloads
149
Readme
stere-insurance-sdk
This package provides utilities for creating embedded insurance UI
Steps to use the Iframe solution :
- Create a container with a unique id attribute to contain the element. (parentContainerId)
- Choose a unique id to identify the element. (iframeId)
- Create the config object. (clientConfig)
- Import the "createIframe" method from our package.
- Invoke this method with 3 mandatory parameters (parentContainerId, iframeId, clientConfig)
- If you want to apply some styles to the element, create a css class for it and send the name of the class. (iframeStylesClassName) Please note this is an optional property.
If you have followed the steps correctly, you should now see the iframe loaded on the page.
Installation
npm install stere-insturance-sdk
Publishing to NPM
- Get your npm account added to org
- git clone https://github.com/stere-io/stere-insurance-sdk
- git pull
- npm login
- npm run build
- npm run prepublish
- npm publish