UNPKG

635 BTypeScriptView Raw
1import React from 'react';
2import { TransitionCallbacks } from './helpers';
3declare type Dimension = 'height' | 'width';
4export interface CollapseProps extends TransitionCallbacks {
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 role?: string;
15}
16declare const Collapse: React.ForwardRefExoticComponent<CollapseProps & React.RefAttributes<unknown>>;
17export default Collapse;