react-blockstack-button
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

react-blockstack-button

React component to display a login with blockstack button.

Blockstack logo blue Blockstack logo light

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

Dependencies (0)

    Dev Dependencies (13)

    Package Sidebar

    Install

    npm i react-blockstack-button

    Weekly Downloads

    3

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    238 kB

    Total Files

    15

    Last publish

    Collaborators

    • leopradel