0.1.0 • Published 5 years ago

react-blockstack-button v0.1.0

Weekly downloads
15
License
MIT
Repository
github
Last release
5 years ago

react-blockstack-button

React component to display a login with blockstack button.

Installation

With npm:

npm install react-blockstack-button --save

Or with yarn:

yarn add react-blockstack-button

Usage

import React from 'react';
import ReactDOM from 'react-dom';
import { BlockstackButton } from 'react-blockstack-button';

const App = () => {
  const handleLogin = () => {
    // Call the blockstack sdk there
  };

  return <BlockstackButton onClick={handleLogin} />;
};

ReactDOM.render(<App />, document.getElementById('app'));

Demo

https://react-blockstack-button.leopradel.com/#demo

Props

https://react-blockstack-button.leopradel.com/#props