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 <iframe> element. (parentContainerId)
- Choose a unique id to identify the <iframe> 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 <iframe> element, create a css class for it and send the name of the class. (iframeStylesClassName) Please note this is an optional property.
- 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
If you have followed the steps correctly, you should now see the iframe loaded on the page.
npm install stere-insturance-sdk