Collapse
Simple expand / collapse component with animations via framer-motion.
Examples
Custom Animation
Define custom animations for the collapse, using the animation
, animationViewChange
props:
Learn more about how to customize the animations in the Custom Animations section.
API
Prop | Description | Default |
---|---|---|
expanded | Whether the collapse is expanded or not.boolean | |
animated | @deprecated Use animation configuration instead.
Whether the collapse is animated or not.boolean | true |
animation | Animation configuration for the collapse.MotionNodeAnimationOptions | |
children | Children to render.ReactNode | (() => ReactNode) | |
theme | Theme for the Collapse.CollapseTheme |
Last updated on