Manta Developers
GitHub
Menu

@manta-eu/react/ad-preview

Reference for @manta-eu/react/ad-preview as it is on main.

Type Aliases

AdPreviewBaseProps

AdPreviewBaseProps = object

Properties

assetNode?

optional assetNode?: ReactNode

Media as a node rather than assetUrl. Honored by every single-media format; the multi-item ones (carousel, reels, a story with items) take a URL per item.

assetUrl?

optional assetUrl?: string

businessIcon?

optional businessIcon?: string

businessName

businessName: string

callToAction?

optional callToAction?: string

className?

optional className?: string

isVideo?

optional isVideo?: boolean


CallToAction

CallToAction = "MORE" | "APPLY_NOW" | "ORDER_NOW" | "PLAY" | "READ" | "SHOP_NOW" | "SHOW" | "SIGN_UP" | "VIEW" | "WATCH" | "DONATE" | "DOWNLOAD" | "RESPOND" | "BUY_TICKETS" | "SHOWTIMES" | "BOOK_NOW" | "GET_NOW" | "LISTEN" | "TRY" | "VOTE" | "VIEW_MENU" | "PRE_REGISTER" | "PLAY_GAME"


FacebookAdFormat

FacebookAdFormat = "feed" | "carousel" | "marketplace" | "story" | "reels" | "instream-reels"


FacebookAdPreviewProps

FacebookAdPreviewProps = FacebookPreviewProps & object

Type Declaration

format

format: FacebookAdFormat


FacebookCarouselItem

FacebookCarouselItem = object

Properties

assetUrl

assetUrl: string

callToAction?

optional callToAction?: string

isVideo?

optional isVideo?: boolean

title?

optional title?: string


FacebookPreviewProps

FacebookPreviewProps = AdPreviewBaseProps & object

Type Declaration

description?

optional description?: string

items?

optional items?: FacebookCarouselItem[]

mainText?

optional mainText?: string

title?

optional title?: string

url?

optional url?: string


GoogleAdFormat

GoogleAdFormat = "search" | "shopping" | "display" | "discover" | "gmail" | "youtube"


GoogleAdPreviewProps

GoogleAdPreviewProps = object & GoogleSearchAdPreviewProps | object & GoogleShoppingAdPreviewProps | object & GoogleDisplayAdProps | object & GoogleDiscoverAdProps | object & GoogleGmailAdProps | object & GoogleYoutubeAdProps


GoogleDiscoverAdProps

GoogleDiscoverAdProps = object

Properties

businessIconUrl?

optional businessIconUrl?: string

businessName

businessName: string

businessUrl?

optional businessUrl?: string

className?

optional className?: string

description?

optional description?: string

headline

headline: string

imageSrc?

optional imageSrc?: string

label?

optional label?: string


GoogleDisplayAdProps

GoogleDisplayAdProps = object

Properties

callToAction?

optional callToAction?: string

className?

optional className?: string

description

description: string

headline

headline: string

imageSrc?

optional imageSrc?: string


GoogleGmailAdProps

GoogleGmailAdProps = object

Properties

businessName

businessName: string

className?

optional className?: string

description?

optional description?: string

headline

headline: string

imageSrc?

optional imageSrc?: string

label?

optional label?: string


GoogleSearchAdPreviewProps

GoogleSearchAdPreviewProps = object

Properties

businessIconUrl?

optional businessIconUrl?: string

businessName

businessName: string

businessUrl?

optional businessUrl?: string

className?

optional className?: string

description?

optional description?: string

headline?

optional headline?: string

label?

optional label?: string

optional sitelinks?: GoogleSearchSitelink[]


GoogleSearchSitelink = object

Properties

description?

optional description?: string

text

text: string

url?

optional url?: string


GoogleShoppingAdPreviewProps

GoogleShoppingAdPreviewProps = object

Properties

businessName

businessName: string

className?

optional className?: string

label?

optional label?: string

products

products: GoogleShoppingProduct[]


GoogleShoppingPrice

GoogleShoppingPrice = object

Properties

current

current: string

original?

optional original?: string


GoogleShoppingProduct

GoogleShoppingProduct = object

Properties

badge?

optional badge?: string

callToAction?

optional callToAction?: string

id

id: string

imageUrl?

optional imageUrl?: string

price?

optional price?: GoogleShoppingPrice

rating?

optional rating?: number

reviewCount?

optional reviewCount?: number

title?

optional title?: string


GoogleYoutubeAdProps

GoogleYoutubeAdProps = object

Properties

businessIconUrl?

optional businessIconUrl?: string

businessName

businessName: string

className?

optional className?: string

description?

optional description?: string

headline

headline: string

imageSrc?

optional imageSrc?: string

primaryCta?

optional primaryCta?: string

progress?

optional progress?: number

secondaryCta?

optional secondaryCta?: string

sponsoredLabel?

optional sponsoredLabel?: string


InstagramAdFormat

InstagramAdFormat = "feed" | "reel" | "story" | "search-result"


InstagramAdPreviewProps

InstagramAdPreviewProps = InstagramPreviewProps & object

Type Declaration

format

format: InstagramAdFormat


InstagramPreviewProps

InstagramPreviewProps = AdPreviewBaseProps & object

Type Declaration

carouselAssets?

optional carouselAssets?: object[]

mainText?

optional mainText?: string


MediaSlotProps

MediaSlotProps = object

Properties

alt?

optional alt?: string

className

className: string

isVideo?

optional isVideo?: boolean

node?

optional node?: ReactNode

Rendered instead of the <img>/<video>, for a caller whose media has no URL yet.

src?

optional src?: string


SnapchatAdFormat

SnapchatAdFormat = "between-content"


SnapchatAdPreviewProps

SnapchatAdPreviewProps = SnapchatBetweenContentProps & object

Type Declaration

format

format: SnapchatAdFormat


SnapchatBetweenContentProps

SnapchatBetweenContentProps = object

Properties

assetUrl?

optional assetUrl?: string

brandName

brandName: string

callToAction

callToAction: CallToAction

className?

optional className?: string

headline

headline: string

logoUrl?

optional logoUrl?: string | null

websiteURL

websiteURL: string

Variables

sizeClasses

const sizeClasses: object

Type Declaration

md

readonly md: "size-8" = "size-8"

sm

readonly sm: "size-6" = "size-6"

xs

readonly xs: "size-5" = "size-5"


snapchatAssetPlaceHolderUrl

const snapchatAssetPlaceHolderUrl: "https://placehold.co/1080x1920.svg" = "https://placehold.co/1080x1920.svg"


snapchatLogoPlaceholderUrl

const snapchatLogoPlaceholderUrl: "https://placehold.co/100x100.svg" = "https://placehold.co/100x100.svg"

Functions

FacebookAdPreview()

FacebookAdPreview(props): Element

Parameters

props

FacebookAdPreviewProps

Returns

Element


getHumanCallToAction()

getHumanCallToAction(callToAction): string

Parameters

callToAction

CallToAction

Returns

string


GoogleAdPreview()

GoogleAdPreview(props): Element

Parameters

props

GoogleAdPreviewProps

Returns

Element


GoogleDiscoverAd()

GoogleDiscoverAd(props): Element

Parameters

props

GoogleDiscoverAdProps

Returns

Element


GoogleDisplayAd()

GoogleDisplayAd(props): Element

Parameters

props

GoogleDisplayAdProps

Returns

Element


GoogleGmailAd()

GoogleGmailAd(props): Element

Parameters

props

GoogleGmailAdProps

Returns

Element


GoogleSearchAdPreview()

GoogleSearchAdPreview(props): Element

Parameters

props

GoogleSearchAdPreviewProps

Returns

Element


GoogleShoppingAdPreview()

GoogleShoppingAdPreview(props): Element

Parameters

props

GoogleShoppingAdPreviewProps

Returns

Element


GoogleYoutubeAd()

GoogleYoutubeAd(props): Element

Parameters

props

GoogleYoutubeAdProps

Returns

Element


InstagramAdPreview()

InstagramAdPreview(props): Element

Parameters

props

InstagramAdPreviewProps

Returns

Element


MediaSlot()

MediaSlot(props): Element | null

Parameters

props

MediaSlotProps

Returns

Element | null


SnapchatAdPreview()

SnapchatAdPreview(props): Element

Parameters

props

SnapchatAdPreviewProps

Returns

Element