Toast
Transient notification surface. Use ToastProvider and useToast for queued notifications.
Использование
Статусы
API
| Проп | Тип | По умолчанию | Описание |
|---|---|---|---|
status | "info" | "success" | "warning" | "error" | info | Semantic status. |
end | ReactNode | — | Trailing content; a divider separates it from close. |
onClose | () => void | — | — |
closeLabel | string | Закрыть уведомление | Accessible label for the close button. |
open | boolean | — | — |
defaultOpen | boolean | | Initial visibility in uncontrolled mode. |
onOpenChange | (open: boolean) => void | — | — |
Last updated on