Skip to main content

Sticky CTA

Sticky component that appears at the bottom of a page

Overview

Untitled

The sticky cta renders an absolute positioned component at the bottom of the page that can be dismissed. The component stores the time it was dismissed in local storage, and will not render for the same placement-id again for 6 hours. If multiple promotions are returned, the cta will rotate through promotions by default. Pass the prop rotate="false" to prevent this behavior.

// custom defined tag
<bam-sticky-cta
property-id="1"
placement-id="1"
context="context">
</bam-stikcy-cta>
SSR AvailableThis component is available for server side rendering.

Properties

PropertyAttributeDescriptionTypeDefault
affiliateaffiliatestringundefined
affiliateTypeaffiliate-typestringundefined
ageagenumberundefined
contextcontext(required)stringundefined
ctaTypecta-typestringundefined
darkModedark-modebooleanfalse
deferdeferbooleanundefined
devModedev-modebooleanfalse
deviceTypedevice-type"android" | "desktop" | "ios" | "mobile"undefined
gameIdgame-idnumberundefined
hideUnderagehide-underagebooleanfalse
internalIdinternal-idstringundefined
isBetsyncUseris-betsync-userbooleanundefined
isLoggedInis-logged-inbooleanundefined
isMobileis-mobilebooleanundefined
leagueleaguestringundefined
locationlocationstringundefined
pageSlugpage-slugstringundefined
placementIdplacement-id(required)numberundefined
propertyIdproperty-id(required)numberundefined
rotaterotatebooleantrue
rotateTimerotate-timenumberDEFAULT_ROTATE_TIME
showOnScrollshow-on-scrollWhen set to 'true', user must scroll 5% of the page before this appears, fades inbooleanfalse
sponsorSlugsponsor-slugstringundefined
subdivisionsubdivisionnumberundefined
subscriptionTiersubscription-tier0 | 1 | 2 | 3undefined
termsterms"affiliate" | "geo"'geo'
userParentBookIdsuser-parent-book-idsstringundefined
wasProwas-probooleanundefined