body | string | — | The message. Required. |
type | 'info' | 'success' | 'warning' | 'error' | 'info' | Visual type of the toast. |
isAutoHide | boolean | true | Whether the toast dismisses itself. error toasts stay until they are dismissed. |
autoHideDuration | number | 5000 | Auto-dismiss duration in milliseconds. |
uniqueID | string | — | Identity shared by toasts that should collapse into one. |
collisionBehavior | 'ignore' | 'overwrite' | 'overwrite' | How a uniqueID clash is resolved. |
endContent | Component | — | Trailing action rendered after the message, such as an undo button. |
onDismiss | (reason: 'auto' | 'manual') => void | — | Runs when the toast card dismisses itself: the timer, the close button, or a swipe. |
onHide | (reason: 'auto' | 'manual') => void | — | Runs when the toast is removed, however it was dismissed. |