UNPKG

@bee-design/ui

Version:

Bee Design React UI Library.

28 lines (27 loc) 1.18 kB
import { ReactInstance } from 'react'; import BaseNotification from '../_class/notification'; import { NotificationProps } from './interface'; import { notificationFuncType } from './useNotification'; export declare type ConfigProps = { maxCount?: number; prefixCls?: string; getContainer?: () => HTMLElement; duration?: number; rtl?: boolean; }; declare class Notification extends BaseNotification { static useNotification: (config?: ConfigProps) => [notificationFuncType, JSX.Element]; static success: (config: NotificationProps) => ReactInstance; static info: (config: NotificationProps) => ReactInstance; static warning: (config: NotificationProps) => ReactInstance; static error: (config: NotificationProps) => ReactInstance; static normal: (config: NotificationProps) => ReactInstance; static config: (options?: ConfigProps) => void; static clear: () => void; static remove: (id: string) => void; static addInstance: (config: NotificationProps) => ReactInstance; remove: (id: string) => void; render(): JSX.Element; } export default Notification; export { NotificationProps };