@octopusdeploy/design-system-components
Version:
The design systems component library.
35 lines (34 loc) • 1.31 kB
TypeScript
import type { TransitionProps as MuiTransitionProps } from "@mui/material/transitions";
import type React from "react";
interface CollapseProps {
id?: string;
/**
* The content node to be collapsed.
*/
children?: React.ReactNode;
/**
* If `true`, the component will be expanded.
*/
in?: boolean;
/**
* The duration for the transition, in milliseconds.
*
* Set to 'auto' to automatically calculate transition time based on height.
*/
timeout?: number | "auto";
/**
* By default the child component stays mounted after it reaches the
* 'exited' state. Set `unmountOnExit` if you'd prefer to unmount the
* component after it finishes exiting.
*/
unmountOnExit?: boolean | undefined;
}
/**
* @deprecated
* Deprecated: 18/05/2026
* Replacement: Use the Accordion component from @octopusdeploy/design-system-components where appropriate. Note that Accordion is not a 1:1 drop-in replacement — it pairs collapse behaviour with a built-in expand/collapse trigger.
* Reason: This component is deprecated and will be removed in a future release.
*/
export declare function DeprecatedCollapse(props: CollapseProps): import("react/jsx-runtime").JSX.Element;
export type TransitionProps = MuiTransitionProps;
export {};