1.0.14 • Published 2 years ago

boost-button v1.0.14

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

boost-button

React component that allows you to integrate a boost button into your web application, leveraging webln for boosting people with lightning addresses.

🚀 Quick Start

npm install boost-button

🤙 Usage

BoostButton

import React from 'react';
import { BoostButton } from 'boost-button';

const MyComponent = () => {
  const lnurl = 'hello@getalby.com';

  return (
    <div>
      <h1>My LN App</h1>
      <BoostButton lnurl={lnurl} />
    </div>
  );
};

export default MyComponent;

And Boost Button component would be embedded like this:

injectBoostButton

import { injectBoostButton } from 'boost-button';

const lnurl = 'hello@getalby.com';

injectBoostButton(lnurl);

And you should see the Boost Button widget on the bottom right of your app:

Thanks

@bigyanpoudel for https://github.com/bigyanpoudel/react-vite-library

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.11

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

0.0.8

2 years ago

0.0.9

2 years ago

1.0.0

2 years ago