0.0.1 • Published 1 year ago
test-my-widget v0.0.1
InsureProWidget
A React component to easily integrate the InsurePro insurance platform into your application.
Installation
Install the InsureProWidget package using npm:
npm install insurepro-widget
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-widget";
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 |
0.0.1
1 year ago