react-tiny-toast
Version:
Aim of this package is to keep only bundles that are critical to your application for the implementation of toast notifications.
21 lines • 487 B
JavaScript
import toast from './toast';
import ToastContainer from './ToastContainer';
export const POSITIONS = {
TOP_CENTER: 'top-center',
TOP_LEFT: 'top-left',
TOP_RIGHT: 'top-right',
BOTTOM_LEFT: 'bottom-left',
BOTTOM_RIGHT: 'bottom-right',
BOTTOM_CENTER: 'bottom-center'
};
export const VARIANTS = {
SUCCESS: 'success',
DANGER: 'danger',
WARNING: 'warning',
DEFAULT: 'default'
};
export const ACTIONS = {
ADD: 'ADD',
REMOVE: 'REMOVE'
};
export { toast, ToastContainer };