Overview

The toast component is used to give feedback to users after an action has taken place.

Properties

PropertiesDescription
colorThe color of the toast component.
durationThe time in milliseconds that elapses before automatically closing the toast. This will override the value supplied to the provider.
typeControl the sensitivity of the toast for accessibility purposes. For toasts that are the result of a user action, choose foreground. Toasts generated from background tasks should use background.
titleAn optional title for the toast.
closeButtonA button that allows users to dismiss the toast before its duration has elapsed.
inputIcon
openThe controlled open state of the dialog. Must be used in conjunction with onOpenChange.
onOpenChangeThe event handler that is called when the open state of the dialog changes.
defaultOpenThe open state of the dialog when it is initially rendered. Use when you do not need to control its open state.