An open API service indexing awesome lists of open source software.

https://github.com/pradel/react-blockstack-button

React component to display a login with blockstack button.
https://github.com/pradel/react-blockstack-button

blockstack component react

Last synced: 9 months ago
JSON representation

React component to display a login with blockstack button.

Awesome Lists containing this project

README

          

# 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

```javascript
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 ;
};

ReactDOM.render(, document.getElementById('app'));
```

## Demo

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

## Props

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