mintbase-bridge
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.11 • Public • Published

    mintbase-bridge

    Embed your NFT stores on your website

    Still in beta, will be ready soon. Mintbase.io
    CircleCI

    Install

    With npm:

    npm install mintbase-bridge --save
    

    With yarn

    yarn add -S mintbase-bridge
    

    Documentation

    Please refer to the official Mintbase docs for a more holistic understanding of the various Link options.

    Using a React component

    import React, { useState } from "react";
    import Mintbase from "mintbase-bridge";
     
    const EmbedMintbase = () => {
      const [isOpen, setIsOpen] = useState(false);
     
      return (
        <div>
          <Mintbase
            contract="0x202d2f33449bf46d6d32ae7644ada130876461a4"
            show={isOpen}
            handleClose={setIsOpen}
            dark="rgba(60, 60, 60, 1)"
            darker="rgba(12, 12, 12, 1)"
            darkAlpha="rgba(60, 60, 60, 0.8)"
          />
          <Button onClick={() => setIsOpen(true)}>Show Market</Button>
        </div>
      );
    };
    export default EmbedMintbase;

    Typescript

    You can find your contract hash when you deploy your store or you can embed other folks markets as well.

    export enum Network {
      rinkeby = "rinkeby",
      mainnet = "homestead",
    }
    
    
    interface MintbaseProps {
      contract: string;
      show: boolean;
      network?: Network;
      handleClose: (isOpen: boolean) => void;
      dark?: string;
      darker?: string;
      darkAlpha?: string;
    }
    

    Install

    npm i mintbase-bridge

    DownloadsWeekly Downloads

    16

    Version

    0.0.11

    License

    MIT

    Unpacked Size

    168 kB

    Total Files

    31

    Last publish

    Collaborators

    • mintbase