Toast

Feedback

A transient notification that appears at the edge of the screen and auto-dismisses.

Preview

Props API

PropTypeDefaultDescription
messagestring"Action completed successfully"The notification message text
variantselect"success" | "error" | "warning" | "info""success"Semantic color variant
titlestring""Optional bold title above the message

Usage

Use toasts for brief, non-blocking feedback about background processes or actions. Do not use them for critical errors — use an inline Alert instead. Keep messages under 80 characters.

Accessibility

  • Uses role="alert" (assertive) for errors, role="status" (polite) for all other variants.

  • Auto-dismiss respects a minimum display time to ensure readability.

  • The dismiss button has an aria-label for screen reader users.