react-hook-popup
Version:
Easily manage popups like alerts and modals in React with a single hook
10 lines (9 loc) • 335 B
TypeScript
import React from 'react';
import './snackbar.css';
export interface SnackBarProps {
handleClose: () => void;
children?: React.ReactNode;
variant?: 'error' | 'success' | 'info' | 'warning';
timeout?: number;
}
export declare const SnackBar: ({ children, handleClose, variant, timeout, }: SnackBarProps) => JSX.Element;