dotwallet-login
v1.0.8
Published
DotWallet Login Component
Maintainers
Readme
#DotWallet Login Component
Install
npm i dotwallet-login --saveUsage
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
| params | type | description | | ----------- | ------ | ----------- | | appId | string | APP_ID | | redirectUrl | string | URL | | lang | string | zh or en | | className | string | class |
Features
Feature Props
TODO
| params | type | description | | --------- | --------------- | ------------- | | onSuccess | Function | Success Event | | onFailure | Function | Failure Event | | render | React.ReactNode | |
