Toast
Overview
The toast component is used to give feedback to users after an action has taken place.
Properties
Properties | Description |
---|---|
color | The color of the toast component. |
duration | The time in milliseconds that elapses before automatically closing the toast. This will override the value supplied to the provider. |
type | Control 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. |
title | An optional title for the toast. |
closeButton | A button that allows users to dismiss the toast before its duration has elapsed. |
inputIcon | |
open | The controlled open state of the dialog. Must be used in conjunction with onOpenChange. |
onOpenChange | The event handler that is called when the open state of the dialog changes. |
defaultOpen | The open state of the dialog when it is initially rendered. Use when you do not need to control its open state. |
Updated 6 months ago