UNPKG

665 BTypeScriptView Raw
1import React from 'react';
2import { TransitionCallbacks } from './helpers';
3declare type Dimension = 'height' | 'width';
4export interface CollapseProps extends TransitionCallbacks, Pick<React.HTMLAttributes<HTMLElement>, 'role'> {
5 className?: string;
6 in?: boolean;
7 mountOnEnter?: boolean;
8 unmountOnExit?: boolean;
9 appear?: boolean;
10 timeout?: number;
11 dimension?: Dimension | (() => Dimension);
12 getDimensionValue?: (dimension: Dimension, element: HTMLElement) => number;
13 children: React.ReactElement;
14}
15declare const Collapse: React.ForwardRefExoticComponent<CollapseProps & React.RefAttributes<unknown>>;
16export default Collapse;