UNPKG

537 BTypeScriptView Raw
1import * as React from 'react';
2import type { NoticeConfig } from './interface';
3export interface NoticeProps extends Omit<NoticeConfig, 'onClose'> {
4 prefixCls: string;
5 className?: string;
6 style?: React.CSSProperties;
7 eventKey: React.Key;
8 onClick?: React.MouseEventHandler<HTMLDivElement>;
9 onNoticeClose?: (key: React.Key) => void;
10 hovering?: boolean;
11}
12declare const Notify: React.ForwardRefExoticComponent<NoticeProps & {
13 times?: number;
14} & React.RefAttributes<HTMLDivElement>>;
15export default Notify;