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.
- Host: GitHub
- URL: https://github.com/pradel/react-blockstack-button
- Owner: pradel
- License: mit
- Created: 2019-06-11T15:44:47.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T06:17:24.000Z (about 3 years ago)
- Last Synced: 2025-03-14T09:06:06.789Z (10 months ago)
- Topics: blockstack, component, react
- Language: TypeScript
- Homepage: https://react-blockstack-button.leopradel.com/
- Size: 3.73 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```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