UNPKG

react-hook-popup

Version:

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

9 lines (8 loc) 291 B
import React from 'react'; import './alert.css'; export interface AlertProps { handleClose: () => void; children?: React.ReactNode; variant?: 'error' | 'success' | 'info' | 'warning'; } export declare const Alert: ({ handleClose, variant, children }: AlertProps) => JSX.Element;