Skip to content
React component to display a login with blockstack button.
TypeScript JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
docs
src
test
.gitignore
.travis.yml
LICENSE
README.md
doczrc.js
netlify.toml
package.json
tsconfig.json
yarn.lock

README.md

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

You can’t perform that action at this time.