1.3.11 • Published 1 year ago

afex-app-widget v1.3.11

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

WidgetController Package

Installation

To install the WidgetController package, run the following command:

npm install afex-app-widget

Usage

Import the WidgetController component from the package and use it in your code as shown below:

//app-header.tsx

import React from "react";
import { WidgetController } from "afex-app-widget";

function App() {
  const widgetConfig = {
    widgetURL: "https://widgeturl.com",
    SSO_URL: "https://ssourl.com",
    apiKey: "someapikey",
    email: "hello@mail.com",
  };

  return (
    <div>
      <h1>My App</h1>
      <WidgetController config={widgetConfig} />
    </div>
  );
}

Props

config (IWidgetControllerProps, required): Configuration object for the Widget Controller component, containing the following properties:

  • position ("left" | "right", optional): Specifies the position of the widget. It can be either "left" or "right". If not provided, the default position is "left".

  • email (string, required): Specifies the email associated with the widget.

  • width (string, optional): Specifies the width of the widget. You can provide a string value representing the width. If not provided, the widget will have the default width.

  • apiKey (string, required): Specifies the API key for authentication.

  • color ("#FFFFFF" | "#8F9198", optional): Specifies the color of the Widget Controller. Use "#FFFFFF" for white or "#8F9198" for another color. Defaults to "#FFFFFF".

  • widgetURL (string, required): Specifies the endpoint used to fetch the list of service providers.

  • SSO_URL (string, required): Specifies the URL for Single Sign-On (SSO) based on the environment.

1.3.7

1 year ago

1.3.6

1 year ago

1.3.5

1 year ago

1.3.10

1 year ago

1.3.11

1 year ago

1.3.8

1 year ago

1.3.4

1 year ago

1.3.3

1 year ago

1.3.2

1 year ago

1.2.8

2 years ago

1.2.9

2 years ago

1.2.12

2 years ago

1.2.13

2 years ago

1.2.10

2 years ago

1.2.11

2 years ago

1.2.16

2 years ago

1.2.14

2 years ago

1.2.15

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago