collapsible-react-component
Version:
Collapses and expands content with an animation.
12 lines (11 loc) • 416 B
TypeScript
import { FunctionComponent, ReactNode } from 'react';
import { RevealType } from './revealTypes';
export type CollapsibleProps = {
open: boolean;
revealType?: RevealType;
onTransitionStart?: (open: boolean) => void;
onTransitionEnd?: (open: boolean) => void;
children?: ReactNode;
alwaysKeepChildrenMounted?: boolean;
};
export declare const Collapsible: FunctionComponent<CollapsibleProps>;