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.
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