UNPKG

are-message

Version:

This is a React global notification message component. It is a standalone implementation of the are-visual message component.

42 lines (41 loc) 919 B
import React, { PropsWithChildren } from 'react'; declare type Ref = HTMLDivElement | null; export declare type MessageHolderProps = PropsWithChildren<{ /** * 设置类名 */ className?: string; /** * 设置行内样式 */ style?: React.CSSProperties; /** * 类名前缀 */ prefixCls?: string; /** * 关闭时触发的回调函数 */ onClose?: () => void; }>; declare const MessageHolder: React.ForwardRefExoticComponent<{ /** * 设置类名 */ className?: string | undefined; /** * 设置行内样式 */ style?: React.CSSProperties | undefined; /** * 类名前缀 */ prefixCls?: string | undefined; /** * 关闭时触发的回调函数 */ onClose?: (() => void) | undefined; } & { children?: React.ReactNode; } & React.RefAttributes<Ref>>; export default MessageHolder;