The Collapse component is use to create regions of content that can expand/collapse with a simple animation. It helps to hide content that's not immediately relevant to the user.
Changing the startingHeight#
This component doesn't have any custom props.
|duration||The animation duration as it expands|
|startingHeight||The height you want the content in it's collapsed state. Set to |
|endingHeight||The height you want the content in it's expanded state. Set to |
|onAnimationEnd||The function to be called when the collapse animation starts. It provides the |
|onAnimationStart||The function to be called when the collapse animation ends. It provides the |
Proudly made in 🇳🇬
Released under the MIT License.
Copyright © 2019 Segun Adebayo