React component to embed Slise into your website
npm install @slise/embed-react
or
yarn add @slise/embed-react
import { SliseAd } from '@slise/embed-react'
export const App: React.FC = () => {
return (
<div>
<p>Leaderboard example:</p>
<SliseAd
style = {{ display: "inline-block", width: "728px", height: "90px" }}
slotId = "1"
pub = "pub-12345"
format = "728x90,364x45"
/>
</div>
)
}
Type: string
Unique ID of the slot across all the pages on your website.
Type: string
Publisher ID (provided by Slise).
Type: string
Comma-separated list of the ad formats that you want to be shown in this slot.
Type: React.CSSProperties
You can add any valid React CSS styles to the ad.
Displays Slise ad in an iframe.