@companycam/slab-web 1.31.8 → 1.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +1 -0
- package/index.js +172 -168
- package/index.mjs +1664 -1626
- package/lib/Collapse/Collapse.d.ts +16 -0
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
export type CollapseProps = ComponentProps<'div'> & {
|
|
3
|
+
/** Controls whether the content is fully visible. */
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
/** Height of the container when collapsed */
|
|
6
|
+
collapsedHeight?: string;
|
|
7
|
+
/** Duration of the expand/collapse animation in milliseconds */
|
|
8
|
+
duration?: number;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* - Animates content in and out by transitioning height.
|
|
12
|
+
* - Uses a `ResizeObserver` to dynamically measure content height, so it works correctly when content changes.
|
|
13
|
+
* - `Collapse` is a controlled component. Provide the `isOpen` prop to control the isOpen state.
|
|
14
|
+
*/
|
|
15
|
+
export declare function Collapse({ isOpen, collapsedHeight, duration, children, ...props }: CollapseProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default Collapse;
|