@insurepro/widgets
v0.0.1
Published
A React component library for embedding InsurePro application
Downloads
1
Readme
InsureProWidget
A React component to easily integrate the InsurePro insurance platform into your application.
Installation
Install the InsureProWidget package using npm:
npm install @insurepro/widgets
Usage
To use the InsureProWidget in your React application, simply import and include the component in your JSX:
import React from "react";
import InsureProWidget from "@insurepro/widgets";
const App = () => {
return (
<div>
<InsureProWidget env="DEV" license="XXX-XXXX-XXXX-XXXX-XXXXXX" />
</div>
);
};
export default App;
Props
| Prop | Type | Required | Description | |-----------|--------|----------|-----------------------------------------------------------------------------| | env | string | Yes | The environment for the widget. Valid options: "DEV", "QA" | | license | string | Yes | A valid license key (UUID4) provided by InsurePro | | width | string or number | No | Width of the widget, can be a percentage or a pixel value (default: 100%) | | height | string or number | No | Height of the widget, can be a percentage or a pixel value (default: 100%) | | className | string | No | Custom CSS class to apply to the widget | | style | object | No | Custom CSS styles to apply to the widget |