UNPKG

@sms-frontend/components

Version:

SMS Design React UI Library.

41 lines (40 loc) 1.12 kB
import React, { Component, ReactNode, CSSProperties } from 'react'; export interface NoticeProps { style?: CSSProperties; className?: string; title?: ReactNode | string; content?: ReactNode | string; duration?: number; showIcon?: boolean; icon?: ReactNode; id?: string; onClose?: (id: any) => void; position?: string; type?: string; btn?: ReactNode; prefixCls?: string; noticeType?: 'message' | 'notification'; update?: boolean; closable?: boolean; } declare class Notice extends Component<NoticeProps, {}> { static defaultProps: { type: string; showIcon: boolean; noticeType: string; duration: number; }; wrapper: Element; timer: any; componentDidMount(): void; componentDidUpdate(nextProps: any): void; componentWillUnmount(): void; startTimer: () => void; removeTimer: () => void; onClose: React.MouseEventHandler<HTMLSpanElement>; renderIcon: () => JSX.Element; onMouseEnter: () => void; onMouseLeave: () => void; render(): JSX.Element; } export default Notice;