UNPKG

@wix/design-system

Version:

@wix/design-system

32 lines (29 loc) 1.09 kB
### dataHook - type: string - description: Adds a `data-hook` attribute for testing purposes. ### position - type: "static" | "sticky" - description: Determines if the collapse stays fixed at the top of its container. - default: static ### open - type: boolean - description: Determines whether the collapse is open. - default: true ### mountOnEnter - type: boolean - description: Delays mounting the component until it is displayed. If `false`, the component mounts immediately. If `true`, it mounts on first display. - default: true ### unmountOnExit - type: boolean - description: Unmounts the component after it finishes exiting. If `false`, the component stays mounted after exit. - default: true ### onExpandAnimationEnd - type: (animationTiming?: AnimationTiming | undefined) => void - description: Triggered when the expand animation completes. ### onCollapseAnimationEnd - type: (animationTiming?: AnimationTiming | undefined) => void - description: Triggered when the collapse animation completes. ### children - type: ReactNode - description: Content to render inside the collapse.