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") with20px-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 a24px-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:
Installation (Shadcn Registry)
# Install via the configured @apple-liquid namespace (includes button, liquid-surface, and liquid-glass)
npx shadcn@latest add @apple-liquid/toastSemantic Types
Built-in Apple system-colored status badges covering success, info, warning, error, and loading:
Action Button
Embed an over-glass capsule action button (such as "Undo" or "View") via actionProps for non-blocking quick actions:
Props API
Toaster
| Prop | Type | Default | Description |
|---|---|---|---|
position | 'top-right' | 'top-center' | 'bottom-right' | 'top-right' | Viewport anchor (top-right centers automatically on mobile) |
glass | boolean | true | Liquid Glass material reacting to glass tint; false renders a 100% opaque surface |
toastManager | ToastManager | Built-in global toast | Optional 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.
| Prop | Type | Description |
|---|---|---|
locale | LiquidGlassLocaleInput | UI language of this component (any BCP 47 tag; unsupported ones fall back to English) |
messages | Partial<ToastMessages> | Text overrides, merged over the built-in text and the global messages.toast |
| Key | Built-in text (English) |
|---|---|
close | Close notification |
Textarea
Responsive Apple Liquid Glass multiline text input featuring CSS field-sizing-content auto-growth, 3.5px Apple Blue focus ring, and default / over-glass / glass surface variants.
Toggle
Toggle button aligned with macOS 27 toolbar and iOS 27 touch dimensions, featuring solid accent pressed state, orthogonal glass Liquid Glass material, and automatic Over-Glass switching.