Content
The collapsible content panel that shows/hides based on open state. Styled variant includes overflow-hidden and animation classes.
| Prop | Type | Default |
|---|---|---|
| forceMount# | booleanForce the content to be mounted in the DOM even when closed (useful for animations) | — |
| className# | stringCSS class name (merged with default styled classes: overflow-hidden text-sm data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down) | — |
| asChild# | booleanUse the component's child as the content element instead of creating a div | — |
| ...htmlAttributes# | React.ComponentPropsWithoutRef<'div'>All standard HTML div attributes (e.g. id, data-*, aria-*, etc.) | — |