svelte-money-button

0.3.0 • Public • Published

Svelte Money Button is a Svelte component that lets you integrate Money Button’s payment system into your app with only a few lines of code.

Installation

Svelte Money Button is available on the npm registry. You can install it both via yarn and npm.

yarn add svelte-money-button
# or 
npm install svelte-money-button

Getting started

Using Svelte Money Button is as simple as adding this component to your app:

<script>
  import MoneyButton from "svelte-money-button";
</script> 
 
<div>
  <MoneyButton
    to="<your-bitcoin-address-here>"
    amount="1"
    currency="USD"
  />
</div>

It accepts all props similar to it's React counterpart. For the official React library check out the docs.

Package Sidebar

Install

npm i svelte-money-button

Weekly Downloads

2

Version

0.3.0

License

MIT

Unpacked Size

40.6 kB

Total Files

5

Last publish

Collaborators

  • armedi