Props
| Name | Description |
|---|---|
disabled Type: booleanDefaultfalse | 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 Type: MutationObserverInitDefault{ childList: true } | Options to pass to the MutationObserver. The default scope is direct children only. Widen it with |
pt Type: PtMap<"root", never> | Passthrough, object form: the same keys as the |
pt:<part> Type: PtValue | Passthrough, attribute form: one attribute per part, |
resizeOptions Type: ResizeObserverOptions | Options to pass to the ResizeObserver. The counterpart to |
strategy Type: "resize" | "mutation"Default"resize" | Define which strategy to use. By default Stay on |
tag Type: LayoutTagDefault"div" | Element rendered as the component's wrapper. Narrowed to |
transitionDuration Type: numberDefault250 | 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 | Description |
|---|---|
default Type: 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 |