Collapse
Animate presence with slide down transition
Import
Source
Docs
Package
Usage
Change transition
Set following props to control transition:
transitionDuration– duration in mstransitionTimingFunction– timing function (ease, linear, etc.), defaults toeaseonTransitionEnd– called when transition ends (both open and close)
Nested Collapse components
Collapse component props
| Name | Type | Description |
|---|---|---|
| animateOpacity | boolean | Should opacity be animated |
| children * | ReactNode | Content that should be collapsed |
| in * | boolean | Opened state |
| onTransitionEnd | () => void | Called each time transition ends |
| transitionDuration | number | Transition duration in ms |
| transitionTimingFunction | string | Transition timing function |