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