0.2.11 • Published 2 years ago

buy-now-svelte v0.2.11

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

Usage

  1. npm i buy-now-svelte@latest
  2. Import the component asynchronously:

    <script>
       import type { BuyNowModal } from "buy-now-svelte";
       import "buy-now-svelte/dist/style.css";
    
       let BuyNow: typeof BuyNowModal;
    
       onMount(async () => {
          const module = await import("buy-now-svelte");
          BuyNow = module.BuyNowModal;
       });
    </script>
    
    <svelte:component
       this={BuyNow}
       isOpen={showModal}
       contractAddress={"0x84047392538009c3d3da0aa76a098b44e1ea5771"}
       tokenId={"32"}
       networkId={"polygon"}
       {onOpenChange}
       {connectedAccount}
    />
  3. Props to the Modal:

    • onOpenChange: () => void;
    • isOpen: boolean;
    • contractAddress: string;
    • tokenId: string;
    • connectedAccount: string | null;
    • networkId: "polygon" | "mainnet";
0.2.11

2 years ago

0.2.0

2 years ago

0.1.175

2 years ago

0.1.174

2 years ago

0.1.172

2 years ago

0.1.171

2 years ago

0.1.17

2 years ago

0.1.16

2 years ago

0.1.15

2 years ago

0.1.14

2 years ago

0.1.13

2 years ago

0.1.12

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago