Animate UI

Auto Height

An effect that automatically adjusts the height of an element based on its content.

Made by imskyleen
Edit on GitHub
Content 300px

Installation

Usage

<AutoHeight>Auto Height</AutoHeight>

API Reference

AutoHeight

PropTypeDefault
asChild?
boolean
false
deps?
React.DependencyList
[]
transition?
Transition
{ type: "spring", stiffness: 300, damping: 30, bounce: 0, restDelta: 0.01 }
animate?
TargetAndTransition | LegacyAnimationControls
-
...props?
HTMLMotionProps<"div">
-

Built by Skyleen. The source code is available on GitHub.