24 lines
561 B
TypeScript
24 lines
561 B
TypeScript
import * as React from 'react';
|
|
|
|
import { TransitionCallbacks } from './helpers';
|
|
|
|
export interface CollapseProps
|
|
extends TransitionCallbacks,
|
|
React.ClassAttributes<Collapse> {
|
|
in?: boolean;
|
|
mountOnEnter?: boolean;
|
|
unmountOnExit?: boolean;
|
|
appear?: boolean;
|
|
timeout?: number;
|
|
dimension?: 'height' | 'width' | (() => 'height' | 'width');
|
|
getDimensionValue?: (
|
|
dimension: number,
|
|
element: React.ReactElement,
|
|
) => number;
|
|
role?: string;
|
|
}
|
|
|
|
declare class Collapse extends React.Component<CollapseProps> {}
|
|
|
|
export default Collapse;
|