Skip to content

Toast

stable

Ephemeral notification toast with auto-dismiss

FeedbackInteractive/Storybook ↗
import { Toast } from "@nodus/design-system"
Loading demo…

Props

variant
Type "default" | "success" | "error" | "warning" | "info"Default "default"

Visual style and icon

title
Type stringDefault

Toast heading

description
Type stringDefault

Toast body text

action
Type ReactNodeDefault

Action element (e.g. undo button)

onClose
Type () => voidDefault

Close handler — shows dismiss button when provided

Metadatainfosuccesswarningerrorsemantictypebordersurfacemotion
MobileTouch Target

Toast dismiss button requires 44px tap target. On mobile, toasts render full-width at the bottom of the viewport. Action buttons inside toasts must also meet the 44px minimum.

Design Rationale

This component was designed to express:

Explore Related

Was this helpful?