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

1.0.14 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i boost-button

Weekly Downloads

0

Version

1.0.14

License

MIT

Unpacked Size

155 kB

Total Files

10

Last publish

Collaborators

  • im-adithya