react-collapse
react-collapse copied to clipboard
Component-wrapper for collapse animation with react-motion for elements with variable (and dynamic) height
if child components are redrawn with a new height, this is not always tracked in getSnapshotBeforeUpdate. Therefore, I moved the height setting logic to onResize. In addition, getSnapshotBeforeUpdate assumes the...
Hey, there. Thanks for creating this package. I find it super useful in a lot of cases and I'm interested in creating some pull requests for changes that I would...
There appears to be a bug for the case when `isOpened` value changes to `true` and then immediatelly changes back to `false` (because of useEffect). Please see Demo2Inner in this...
Hi, possible to Collapse/Open all on button click? Scenario: A list with 10 collapse items, 6 are collapsed and 4 are open. One button to Collapse/Open all 10 items at...
Use case: Have one container for 3 divs(A,B,C) inside the collapse. Two of them(A,B) are being displayed based on a state property. Component C is a sticky one. Whenever the...
In server side rendering, if collapse element is expanded by default it will still return `overflow: hidden, height: 0` So it would be nice to have it with `height: 'auto'`
When `Collapse` is opened, then closed quickly before animation has started (`height` is still 0), rest will not apply the final closed style leaving the component in `onWork` style for...
Good afternoon! I'm working on an app with this library and nesting two collapsible. I have set them both to be open from the beginning. However, even though it shouldn't...
It would be really great if it supported a collapse-width mode
_initialStyle_ prop not applied on Collapse. I want to set initial height instead of the default 0, when it's NOT open. So it would appear partially open. I assumed _initialStyle_...