Skip to main content

Toast

Dismissible notification toast with variants, icons, CTAs, auto-dismiss, motion, ToastPanel for inline previews, and ToastStack helper.

Variants

Notification

Something happened.

Saved

Your entry was saved.

Trial ending

Your trial ends in three days.

Error

Could not delete entry.

With icon

Notification

Something happened.

Saved

Your entry was saved.

Trial ending

Your trial ends in three days.

Error

Could not delete entry.

With CTA

Trial ending soon

Three days left on your free trial.

Unsaved changes

Leaving now will lose edits from this session.

Entry exported

Your notebook is ready to download.

Message only

Sync complete — your changes are on this device.

With dismiss

Entry saved

Your changes are on this device.

Dismiss meter

Entry saved

Auto-dismisses when the bar reaches the end.

Trial ending soon

Three days left on your free trial.

Live toast

Live samples render inside this preview frame (mobile / tablet / desktop) with safe-area insets. Default placement is top-right — try each corner below.

Placement

Variant

Content

Animation variants

enterAnimationVariant — open and close each panel to compare fluid spring motion (default, spring, zoom) vs legacy ease presets.

API

PropRequiredTypeDefaultDescription
themeOptionalSiteThemeatelierVisual theme.
open / onCloseOptionalboolean + callbackVisibility control.
variantOptionalToastVariantdefaultdefault, success, warning, danger.
title / messageOptionalstring + ReactNodeToast heading and body.
iconOptionalReactNodeCustom leading icon; overrides showIcon defaults.
showIconOptionalbooleanfalseShow built-in variant icon when icon is not set.
actionOptionalReactNodeCTA row — pass Button, Link, or a small action group.
durationOptionalnumber5000Auto-dismiss ms; 0 disables timer.
showDismissMeterOptionalbooleanfalseBottom countdown bar synced to duration (requires duration > 0).
placementOptionalToastPlacementtop-rightScreen corner — top-right, top-left, bottom-right, bottom-left, top-center, bottom-center. Uses safe-area insets on mobile.
portalRootOptionalHTMLElement | nullOptional portal host; positions the toast inside a container (e.g. preview frame) instead of the viewport.
ToastPanelOptionalcomponentStatic toast surface for inline layouts and docs.
ToastStackOptionalcomponentRenders multiple toasts from an array; respects placement per toast.
animationVariantOptionalPressAnimationVariantdefaultPress animation — default, none, ripple, scale, sink, lift, pulse, or glow.
enterAnimationVariantOptionalEnterAnimationVariantdefaultPanel enter/exit — default and spring use fluid spring physics (Animate UI–style); zoom is a stronger pop; subtle keeps legacy ease motion; fade, slide-*, scale, or none.