15 lines
513 B
TypeScript
15 lines
513 B
TypeScript
import * as React from 'react';
|
|
import type { NoticeConfig } from './interface';
|
|
export interface NoticeProps extends Omit<NoticeConfig, 'onClose'> {
|
|
prefixCls: string;
|
|
className?: string;
|
|
style?: React.CSSProperties;
|
|
eventKey: React.Key;
|
|
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
onNoticeClose?: (key: React.Key) => void;
|
|
}
|
|
declare const Notify: React.ForwardRefExoticComponent<NoticeProps & {
|
|
times?: number;
|
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
export default Notify;
|