0.0.1 • Published 1 year ago

test-my-widget v0.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

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

PropTypeRequiredDescription
envstringYesThe environment for the widget. Valid options: "DEV", "QA"
licensestringYesA valid license key (UUID4) provided by InsurePro
widthstring or numberNoWidth of the widget, can be a percentage or a pixel value (default: 100%)
heightstring or numberNoHeight of the widget, can be a percentage or a pixel value (default: 100%)
classNamestringNoCustom CSS class to apply to the widget
styleobjectNoCustom CSS styles to apply to the widget
0.0.1

1 year ago