Examples
Without Description
All Variants
Without Title
With Action
Without Close
Props
Toast
A dismissible notification that appears temporarily. Supportsinfo, warning, success, error, and messageToast variants with optional action button, close control, and avatar.
Use inside a ToastProvider with a ToastViewport.
string
default:"Action"
Label for the optional action button.
boolean
string
Alt text for the avatar image.
string
Fallback content for the avatar (e.g. initials).
string
Avatar image URL (used by the
messageToast variant).string
default:"Close notification"
Accessible label for the close button.
ReactNode
Description or body content displayed below the title.
(() => void)
Click handler for the action button. When provided, the action button is rendered.
boolean
default:"true"
Whether to show the close button.
string
Title text displayed in bold at the top of the toast.
"info" | "success" | "warning" | "error" | "messageToast"
default:"info"
Visual/semantic variant of the toast.
ToastProvider
Provides toast context. Wrap your application (or a subtree) with this provider. Takes no props of its own beyond the standard attributes of the element it renders.ToastViewport
Fixed-position container that renders active toasts. Place once at the root of your app. Accepts all props of the underlying RadixToastPrimitive.Viewport primitive, plus className.
Exported types
Also exported from@fanvue/ui: ToastProps, ToastProviderProps, ToastVariant, ToastViewportProps.
Setup: Installation · Theming