1.2.0 • Published 3 years ago

dyzz-toaster v1.2.0

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

simple react toaster component for show notifications

how to use:

import {IToasterTypes, NotificationToast, ToastEvent, toastEventManager} from 'dyzz-toaster';


export const Button = () =>
    <button onClick={() => {
        toastEventManager.emit(ToastEvent.CREATE,
        {timeOutDelay: 9000, indicateLine: true, text: 'it is error toaster', type: IToasterTypes.ERROR})

        toastEventManager.emit(ToastEvent.CREATE,
            {timeOutDelay: 7000, indicateLine: true, text: 'it is notification toaster', type: IToasterTypes.NOTIFICATION})
    }}>show toast</button>

export function App() {
    return (
        <>
            <NotificationToast/>
            <Button/>
        </>
    )
}
1.2.0

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago