Learn how companies like Phone2Action are using npm in their front-end developmentJoin the conversation »

trezor-react-pinpad

0.1.0 • Public • Published

trezor-react-pinpad

React component for displaying a pinpad for the Trezor hardware wallet.

For more information about what this is, see: http://doc.satoshilabs.com/trezor-user/enteringyourpin.html

API

var TrezorPinpad = require('trezor-react-pinpad')
 
// The trezorDone() callback has one parameter, the pin code text.
<TrezorPin onChange={this.trezorDone} />

Perhaps you also want to wrap this component into a modal window. Use one of your favourite modal libraries for that.

For an example usage see example.html. In order to use it, browserify example.js first by:

browserify -t [ babelify --presets [ react ] ] example.js &> example.build.js

Acknowledgement

The sample CSS provided is inspired by http://codepen.io/Elliotsmith/pen/AwKLk

License

MIT license.

Copyright (C) 2016 Alex Beregszaszi

Install

npm i trezor-react-pinpad

DownloadsWeekly Downloads

2

Version

0.1.0

License

MIT

Last publish

Collaborators

  • avatar