17 lines
657 B
TypeScript
17 lines
657 B
TypeScript
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;
|