UNPKG

react-hook-popup

Version:

Easily manage popups like alerts and modals in React with a single hook

10 lines (9 loc) 314 B
import { SnackBarProps } from '../components'; import { PopupMethods } from './usePopup'; interface UseSnackBarOptions { variant?: SnackBarProps['variant']; key?: string; timeout?: number; } export declare function useSnackBar({ key, variant, timeout, }?: UseSnackBarOptions): PopupMethods; export {};