The height:auto spring primitive: a wrapper whose height springs to its content, opens and closes with the content fading in after the height lands, and rests at height:auto with no clipping.
npx shadcn@latest add https://eased.dev/r/eased-auto-height.jsoneased-auto-height