mirror of
https://github.com/zhigang1992/react.git
synced 2026-04-25 21:05:36 +08:00
feat(toast): support react nodes as toast content
This commit is contained in:
@@ -12,7 +12,7 @@ export interface ToastAction {
|
||||
}
|
||||
|
||||
export interface Toast {
|
||||
text?: string
|
||||
text?: string | React.ReactNode
|
||||
type?: NormalTypes
|
||||
delay?: number
|
||||
actions?: Array<ToastAction>
|
||||
|
||||
Reference in New Issue
Block a user