Props
| Name | Type | Default | Description |
|---|---|---|---|
disabled | boolean | undefined | false | Disable smooth-height behavior and allow natural content height. Removes the inline height, returns overflow to visible and makes layout instant. It is reactive, so it can be flipped per instance when a parent already animates height. You do not need it for reduced motion — |
mutationOptions | MutationObserverInit | undefined | { childList: true } | Options to pass to the MutationObserver. The default scope is direct children only. Widen it with |
pt | PtMap<"root", never> | undefined | - | Passthrough, object form: the same keys as the |
pt:root | PtValue | undefined | - | |
resizeOptions | ResizeObserverOptions | undefined | - | Options to pass to the ResizeObserver. The counterpart to |
strategy | "resize" | "mutation" | undefined | "resize" | Define which strategy to use. By default Stay on |
tag | LayoutTag | undefined | "div" | Element rendered as the component's wrapper. Narrowed to |
transitionDuration | number | undefined | 250 | How long the transition has to last in milliseconds Milliseconds; the default is 250. The easing is not a prop — it comes from the |
Slots
The listed properties are the ones exposed to the slot scope.
| Name | Type | Description |
|---|---|---|
default | object | Content whose height changes are animated with a smooth transition. Always mounted, always focusable: this component animates height and hides nothing. When the content must genuinely be hidden and inert, the component you want is |