dashboard-react
Preparing search index...
useToast
Function useToast
useToast
()
:
{
toasts
:
Toast
[]
;
addToast
:
(
input
:
ToastInput
)
=>
string
;
dismissToast
:
(
id
:
string
)
=>
void
;
}
Subscribe React components to the shared toast store.
Returns
{
toasts
:
Toast
[]
;
addToast
:
(
input
:
ToastInput
)
=>
string
;
dismissToast
:
(
id
:
string
)
=>
void
;
}
toasts
:
Toast
[]
addToast
:
(
input
:
ToastInput
)
=>
string
dismissToast
:
(
id
:
string
)
=>
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
dashboard-react
Loading...
Subscribe React components to the shared toast store.