Skip to Content
Liquid Glass UI
Components

Toast

Apple macOS 27 top-right and iOS 27 top-center Liquid Glass notification banners supporting stacked hover expansion, swipe dismissal, and semantic status icons.

Built on @base-ui/react/toast, fully compatible with Toaster, toast, createToastManager, and useToastManager, reproducing Apple 27 system notification banners:

  • Desktop (>= 768px · macOS 27): Anchored top-right (position="top-right") with 20px-radius Liquid Glass cards that stack neatly and fan out on hover.
  • Mobile (< 768px · iOS 27): Automatically centers at the top of the screen as a 24px-radius Liquid Glass banner with swipe-up and horizontal swipe dismissal.

Responsive Live Preview

Trigger multiple notifications and hover to expand the stack; toggle Desktop / Mobile to inspect top-right ↔ top-center adaptation:

apple-liquid-ui/preview/toast-liquid-hero
MacBook · 16:10

Installation (Shadcn Registry)

# Install via the configured @apple-liquid namespace (includes button, liquid-surface, and liquid-glass)
npx shadcn@latest add @apple-liquid/toast

Semantic Types

Built-in Apple system-colored status badges covering success, info, warning, error, and loading:

apple-liquid-ui/preview/toast-types
MacBook · 16:10

Action Button

Embed an over-glass capsule action button (such as "Undo" or "View") via actionProps for non-blocking quick actions:

apple-liquid-ui/preview/toast-action
MacBook · 16:10

Props API

Toaster

PropTypeDefaultDescription
position'top-right' | 'top-center' | 'bottom-right''top-right'Viewport anchor (top-right centers automatically on mobile)
glassbooleantrueLiquid Glass material reacting to glass tint; false renders a 100% opaque surface
toastManagerToastManagerBuilt-in global toastOptional scoped toast manager created via createToastManager()

Language & Text

Toaster accepts locale and messages, which apply to all of its parts and the overlays it opens and win over the global <LiquidGlassProvider locale messages>. To override the text globally, put it under messages.toast on the provider. See Liquid Glass → Global settings.

PropTypeDescription
localeLiquidGlassLocaleInputUI language of this component (any BCP 47 tag; unsupported ones fall back to English)
messagesPartial<ToastMessages>Text overrides, merged over the built-in text and the global messages.toast
KeyBuilt-in text (English)
closeClose notification

On this page