UNPKG

yzsd

Version:
25 lines (24 loc) 879 B
import React from 'react'; import { type NoticeConfig } from './notice'; export type Placement = 'topLeft' | 'topRight' | 'top' | 'bottom' | 'bottomLeft' | 'bottomRight'; export interface OpenConfig extends NoticeConfig { key: React.Key; placement: Placement; content?: React.ReactNode; duration?: number | null; } export interface NotificationProps { prefixCls?: string; container?: HTMLElement; maxCount?: number; className?: (placement: Placement) => string; style?: (placement: Placement) => React.CSSProperties; onAllRemoved?: VoidFunction; } export interface NotificationsRef { open: (config: OpenConfig) => void; close: (key: React.Key) => void; destroy: () => void; } declare const noTifications: React.ForwardRefExoticComponent<NotificationProps & React.RefAttributes<NotificationsRef>>; export default noTifications;