0.0.9 • Published 6 years ago
react-little-toast v0.0.9
Introduction
A simplest Toast react component.
Install
npm install react-little-toastUsage
import Toast from 'react-little-toast';
Toast.info({ message: 'Hello world' });
Toast.success({ message: 'Success' });
Toast.error({ message: 'Error' });
// timeout is passed to customize toast duration, default to 3000ms
Toast.info({ message: 'Custom timeout', timeout: 3000 });Licenes
MIT License