New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@spindl-xyz/embed-react

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spindl-xyz/embed-react

## Getting Started

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
338
decreased by-26.2%
Maintainers
2
Weekly downloads
 
Created
Source

Spindl React Embed Library

Getting Started

  • Run npm i --save @spindl-xyz/embed-react or yarn add @spindl-xyz/embed-react
  • Import the BannerEmbed component and utilize it in your react application
    • Please reach out to us for the proper publisherId, placementId
    • For customization, you can pass in additional styles which will target the returning iframe tag. we recommend adding width and height to desired dimensions

Optional Params

  • address: optional string | string[] but highly encouraged to provide more targeted embeds
  • properties: optional json blob. useful to pass in extra context for user to provide more targeted embeds
import { BannerEmbed } from "@spindl-xyz/embed-react";

const Component = () => {
  return (
    <>
      // ...
      <BannerEmbed
        publisherId="test" // * required
        placementId="1" // * required
        style={{
          width: "970px",
          height: "250px",
        }} // * recommended to add desired width/height
        address={"0x123..."} // can also be passed in an array. i.e. ["0x123", "0x456"]
        properties={{
          userType: "nft",
        }} // optional. you can pass in JSON blob as additional context so we can provide more targeted embeds
      />
    </>
  );
};

Keywords

FAQs

Package last updated on 28 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc