UNPKG

@rc-component/dialog

Version:
17 lines (16 loc) 657 B
import * as React from 'react'; import type { PanelProps, PanelRef } from './Panel'; import type { CSSMotionRef } from '@rc-component/motion/es/CSSMotion'; export type CSSMotionStateRef = Pick<CSSMotionRef, 'inMotion' | 'enableMotion'>; export type ContentRef = PanelRef & CSSMotionStateRef; export type ContentProps = { motionName: string; ariaId: string; onVisibleChanged: (visible: boolean) => void; } & PanelProps; declare const Content: React.ForwardRefExoticComponent<{ motionName: string; ariaId: string; onVisibleChanged: (visible: boolean) => void; } & PanelProps & React.RefAttributes<ContentRef>>; export default Content;