Data & FeedbackUpdated May 3, 2026

Toast

Transient feedback with restrained semantic variants.

#Default usage

Toast anatomyToasts use a semantic border instead of loud fills.

    #Usage

    Code
    import {
      Toast,
      ToastAction,
      ToastClose,
      ToastDescription,
      ToastProvider,
      ToastTitle,
      ToastViewport,
    } from "@froggdesign/enter-ui";
    
    export function Example() {
      return (
        <ToastProvider>
          <Toast open variant="success">
            <ToastTitle>Published</ToastTitle>
            <ToastDescription>Your component docs are live.</ToastDescription>
          </Toast>
          <ToastViewport />
        </ToastProvider>
      );
    }

    #Patterns

    Action and closeToastAction requires altText from Radix.

      #Accessibility

      Toast behavior is handled by Radix, including viewport semantics, timed announcements, actions, and dismiss controls.

      #API

      • ToastProvider wraps toast usage.
      • Toast variant supports default, success, warning, error, and info.
      • ToastAction requires Radix altText.

      #Styling

      Every exported component accepts className when it renders an element. EnterUI styles use .eui-* classes and --eui-* variables mapped from FroggDesign theme tokens.