eth-tip-button
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i eth-tip-button

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

70.1 kB

Total Files

10

Last publish

Collaborators

  • frimoldi