@dypai-ai/client-sdk - v1.12.0
DYPAI
GitHub
Preparing search index...
hooks/use-toast
useToast
Function useToast
useToast
()
:
{
toast
:
ToastFunction
;
toastError
:
(
title
:
string
,
description
?:
string
)
=>
void
;
toastInfo
:
(
title
:
string
,
description
?:
string
)
=>
void
;
toastSuccess
:
(
title
:
string
,
description
?:
string
)
=>
void
;
toastWarning
:
(
title
:
string
,
description
?:
string
)
=>
void
;
}
Hook que retorna la función toast configurada o el fallback
Returns
{
toast
:
ToastFunction
;
toastError
:
(
title
:
string
,
description
?:
string
)
=>
void
;
toastInfo
:
(
title
:
string
,
description
?:
string
)
=>
void
;
toastSuccess
:
(
title
:
string
,
description
?:
string
)
=>
void
;
toastWarning
:
(
title
:
string
,
description
?:
string
)
=>
void
;
}
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
DYPAI
GitHub
@dypai-ai/client-sdk - v1.12.0
Loading...
Hook que retorna la función toast configurada o el fallback