Components
GlassToast
A glassmorphism-styled toast notification system powered by Radix UI.
Setup
Place GlassToastProvider and GlassToaster near the root of your app.
Preview
Usage
Variants
Props — GlassToast
| Prop | Type | Default | Description |
|---|---|---|---|
variant | "default" | "success" | "warning" | "error" | "default" | Visual style |
duration | number | 5000 | Auto-dismiss duration in ms |
open | boolean | — | Controlled open state |
onOpenChange | (open: boolean) => void | — | Callback on open state change |
Props — GlassToastProvider
| Prop | Type | Default | Description |
|---|---|---|---|
duration | number | 5000 | Default duration for all toasts |
swipeDirection | "right" | "left" | "up" | "down" | "right" | Swipe-to-dismiss direction |
All Radix Toast.* props are also accepted.