AnimatedPanel

Grid-rows collapse/expand wrapper. Animates 0fr → 1fr with cubic ease and unmounts heavy children when closed.

Preview

Usage

import { AnimatedPanel } from '@ramtt/ui'

<AnimatedPanel isOpen={open} duration={200}>
  {/* content */}
</AnimatedPanel>

Props

PropTypeDefaultDescription
isOpen*booleanControls whether the panel is expanded
children*ReactNodePanel content
durationnumber200Transition duration in ms
unmountOnClosebooleantrueRemove children from DOM after collapse — important for heavy SVG charts
classNamestringAdditional Tailwind classes