react-lightning-widget
v0.2.3
Published
A beautiful widget for accepting Bitcoin in React projects. This is a "Reactified" version of [@reneaaron's awesome web component widget](https://github.com/reneaaron/lightning-widget). Check out his [project website](https://widgets.twentyuno.net/) or th
Downloads
5
Readme
React Lightning Widget ⚡
A beautiful widget for accepting Bitcoin in React projects. This is a "Reactified" version of @reneaaron's awesome web component widget. Check out his project website or that project repo for more details.
Quick start
npm install react-lightning-widget
Usage:
import LightningWidget from "react-lightning-widget";
function App() {
return (
<div className="App">
<LightningWidget
name="René Aaron"
accent="#20c997"
to="[email protected]"
image="https://secure.gravatar.com/avatar/07e22939e7672b38c56615068c4c715f?size=200"
/>
</div>
);
}
export default App;
See the project page for all props. Huge thanks to reneaaron for this great tool!