Back to top

Embeddable Configuration

Auctions

Introduction

The Monegraph auction embeddable allows you to embed individual auction detail pages.

Configuration

Parameter Path Description
Width width Controls the width of the embeddable, input is a css valid width
Height height Controls the height of the embeddable, input is a css valid height
Background Color config.theme.backgroundColor Controls the background color of the embeddable, input is a css valid color
Primary Color config.theme.primaryColor Controls the primary color of elements in the embeddable, input is a css valid color
Secondary Color config.theme.secondaryColor Controls the secondary color of elements in the embeddable, input is a css valid color
Custom Stylesheet config.theme.stylesheet The provided stylesheet will be injected into the embeddable, allowing full control for customization.
Hide Seller Information config.auction.hideSeller Hide the seller information on the bottom of the auction details page

Events

Name Description Usage
connectWallet Iframe emits event when an auction is viewed with a connected wallet
signMessage Parent requests the iframe sign a message
signedMessage Parent receives the signed message

Example

{
  url: 'https://app.monegraph.com/auctions/0x123...',
  width: "100%",
  height: "100%",
  config: {
      theme: {
          global: {
              backgroundColor: "#7085a4",
              primaryColor: "#b455a4",
              secondaryColor: "#672222",
          },
          stylesheet: "https://www.example.com/style.css"
      },
      auction: {
          hideSeller: true
      }
  },
}

Style Customization

  • .auction-button-container

  • .auction-button-inner

  • .auction-button-price-label

  • .auction-button-price

  • .auction-button-price-usd

  • .auction-date-ending-divider

  • .action-button-message

  • .buy-button

  • .user-button

  • .auction-date-ending

  • .auction-date-ending-label

  • .auction-date-ending-days

  • .auction-date-ending-hours

  • .auction-date-ending-minutes

  • .auction-buy-button-container

  • .auction-details-title

  • .auction-detalis-artist

  • .auction-detalis-artist-name

  • .auction-detalis-description-label

  • .auction-detalis-description

  • .auction-detalis-edition-label

  • .auction-detalis-edition

  • .auction-detalis-total

  • .auction-detalis-avatar

  • .auction-detalis-seller

  • .auction-detalis-history

  • .auction-detalis-history-container

  • .bid-row

  • .bid-row-avatar

  • .bid-row-container

  • .bid-row-title

  • .bid-row-username

  • .bid-row-date

Generated by aglio on 20 Jun 2022