feat(toast): support react nodes as toast content

This commit is contained in:
unix
2020-03-30 03:42:07 +08:00
parent bfd030ea48
commit 7c5e8331f0

View File

@@ -12,7 +12,7 @@ export interface ToastAction {
}
export interface Toast {
text?: string
text?: string | React.ReactNode
type?: NormalTypes
delay?: number
actions?: Array<ToastAction>