DocsComponents
Smooth Collapse
The missing piece for generic height animations. Animate to and from "height: auto" effortlessly.
Installation
npm install smoothkitUsage
typescript
API Reference
| Property | Type | Default | Description |
|---|---|---|---|
| duration | number | 300 | Transition duration in ms. |
| easing | string | 'ease' | CSS easing function. |
| initialOpen | boolean | false | Whether the content starts expanded. |