UNPKG
react-toast
Version:
latest (1.0.3)
1.0.3
1.0.1
1.0.0
0.1.0
Minimal toast notifications for React.
github.com/moharnadreza/react-toast
moharnadreza/react-toast
react-toast
/
dist
/
components
/
Toast
/
Toast.d.ts
9 lines
(8 loc)
•
244 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
import
{
FC
}
from
'react'
;
import
{
Toast
as
ToastType
}
from
'../../types'
;
import
'./Toast.css'
;
export
interface
IToast
extends
ToastType
{
onClose
:
(
id
:
string
) =>
void
; }
declare
const
Toast
:
FC
<
IToast
>;
export
default
Toast
;