Toast

Provides a brief notification.

View source code
  • onClose
    () => void

    Handler that is called when the element is closed

  • title
    ReactNode

    The title to display in the Toast

  • action
    { text: string; isLoading?: boolean; onClick: () => void; }

    The action to display at the bottom of the Toast

  • children
    ReactNode

    Content of the Toast

  • className
    string

    className for the element

  • variant
    "alert" | "success"

    The visual style of the Toast

    Default: success