Skip to content

BannerSlot

A full-width banner for announcements, usage warnings, and time-sensitive promotions. Supports top/bottom positioning and optional dismiss.

Content fields: header, body, cta_label, position (top | bottom), dismissible

import { FixedSurfaceSlot } from '@revturbine/sdk';
<FixedSurfaceSlot
id="top_banner"
surfaceTemplateIds={["banner_placement"]}
/>

The BannerSlot renders automatically when the decision engine selects a banner_placement template. Banners render at the top or bottom of the page. When dismissible is true, users can close the banner. The SDK tracks dismissals to prevent re-showing.

Related: Playground → Annual Banner · API Reference