Collapse
Animate presence with slide down/up transition
Source
LLM docs
Docs
Package
Usage
Horizontal orientation
Change transition
Set the following props to control the transition:
transitionDuration– duration in mstransitionTimingFunction– timing function (ease, linear, etc.), defaults toeaseonTransitionEnd– called when transition ends (both open and close)
Example: nested Collapse components
use-collapse hook
use-collapse is the hook version of the Collapse component.
It allows more flexible usage and control over the collapse behavior.