@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
24 lines (23 loc) • 899 B
TypeScript
import { BoxProps, Factory } from '../../core';
export interface CollapseProps extends BoxProps, Omit<React.ComponentPropsWithoutRef<'div'>, keyof BoxProps> {
/** Opened state */
in: boolean;
/** Called each time transition ends */
onTransitionEnd?: () => void;
/** Transition duration in ms, `200` by default */
transitionDuration?: number;
/** Transition timing function, default value is `ease` */
transitionTimingFunction?: string;
/** Determines whether opacity should be animated, `true` by default */
animateOpacity?: boolean;
/** Keep element in DOM when collapsed, useful for nested collapses */
keepMounted?: boolean;
}
export type CollapseFactory = Factory<{
props: CollapseProps;
ref: HTMLDivElement;
}>;
export declare const Collapse: import("../../core").MantineComponent<{
props: CollapseProps;
ref: HTMLDivElement;
}>;