1.0.8 • Published 4 years ago

dotwallet-login v1.0.8

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

#DotWallet Login Component

Install

npm i dotwallet-login --save

Usage

import React from 'react';
import ReactDOM from 'react-dom';
import DotwalletLogin from 'dotwallet-login';

ReactDOM.render(
  <DotwalletLogin
    appId={APPID}
    redirectUrl={REDIRECT_URL}
  />,
  document.getElementById("dotwallet-login")
);

or

<DotwalletLogin
  appId={APPID}
  redirectUrl={REDIRECT_URL}
>
  <div className="my-login-button">Login with DotWallet</div>
</DotwalletLogin>,

Documentation

Props

paramstypedescription
appIdstringAPP_ID
redirectUrlstringURL
langstringzh or en
classNamestringclass

Features

Feature Props

TODO

paramstypedescription
onSuccessFunctionSuccess Event
onFailureFunctionFailure Event
renderReact.ReactNode
1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago