1.1.0 • Published 3 years ago

eth-tip-button v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

eth-tip-button

A simple React button to accept tips in ETH

NPM JavaScript Style Guide

Install

npm install --save eth-tip-button
yarn add eth-tip-button

Usage

import React from 'react'

import { Button } from 'eth-tip-button'

const Example = () => {
    return (
      <Button
        recipientAddress="<YOUR_ETH_ADDRESS>"
        label="Tip me some ETH"
        onTransactionFinished={(tx) => console.log("Done! Transaction finished: ", tx)}
        onError={(error) => console.log("Something went wrong: ", error)}
      />
    )
}

Demo

Demo

License

MIT © frimoldi.eth

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.1

3 years ago