Skip to content
Feedback

Toast

Non-blocking notification toasts with success, error, warning, and info variants, auto-dismiss, and action buttons.

Preview:
1280px

Props

PropTypeDefaultDescription
variant'success' | 'error' | 'warning' | 'info''info'Determines icon and color.
titlestring-Bold heading of the toast.
messagestring-Supporting detail text.
onDismiss() => void-Dismiss handler. Shows close button when set.
action{ label: string; onClick: () => void }-Optional inline action button.
autoDismissnumber-Auto-dismiss timeout in ms.