@staircase/partner-credentials-widget
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

Staircase Widget app

Provides React components to use.

Install

npm

npm install @staircase/partner-credentials-widget

yarn

yarn add @staircase/partner-credentials-widget

Examples of usage

Note, to get token use Staircase endpoint

JS

import { renderWidget } from '@staircase/partner-credentials-widget'

const token = 'YOUR_TOKEN'
renderWidget(document.getElementById('root'), token, () => {
    console.log('Widget worked'),
        () => {
            console.log('Widget Error')
        },
        () => {
            console.log('Widget modal closed')
        }
})

React

import { Widget } from '@staircase/partner-credentials-widget'

const token = "YOUR_TOKEN"

const App = () => {
    return <Widget token={token} onComplete={() => {console.log("Widget worked")} onError={()=>{}} onClose={()=>{}} }/>
}

Readme

Keywords

Package Sidebar

Install

npm i @staircase/partner-credentials-widget

Weekly Downloads

3

Version

1.0.8

License

none

Unpacked Size

2.29 MB

Total Files

6

Last publish

Collaborators

  • toxic_23
  • zik4138
  • eorlovsky_staircase