ToastSlot
A non-blocking toast notification for usage alerts, feature announcements, and success confirmations. Supports multiple positions and optional CTA.
Content fields: message, cta_label, position (bottom-right | top-right | bottom-center), duration
A live, editable example — edit the code (or switch the demo user) and the preview re-runs:
import { Slot } from "@revturbine/sdk";import { DemoApp } from "./DemoApp";
// Bob is on Professional — the engine serves him a trial-welcome toast.export default function App() { return ( <DemoApp user="user_bob"> <Slot id="global_toast" surfaceTemplateIds={["toast_message"]} /> </DemoApp> );}Opens a live, editable sandbox with the published SDK.
The ToastSlot renders automatically when the decision engine selects a toast_message template. Toasts auto-dismiss after duration milliseconds (set to 0 to disable auto-dismiss). Position is controlled by the position content field.
Related: Playground → Trial Toast · API Reference