Auto Resize

Animate container height changes based on dynamic content.

Overview

AutoResize animates its height whenever the content inside changes. Use it for panels, accordions, tabs, or any layout that needs smooth height transitions without layout jump.

Usage

import { AutoResize } from "@tilt-legal/cubitt-components/primitives";

<AutoResize>
  <div>Dynamic content</div>
</AutoResize>

On this page