onOpen | function | (optional) Is called when fully opened or closed. Returns true or false depending on the state. |
onAnimationStart | function | (optional) Is called when animation has started. The first parameter is a string, depending on the state. It can be opening , closing or adjusting . |
onAnimationEnd | function | (optional) Is called when animation is done and the full height is reached. The first parameter is a string, depending on the state. It can be opened , closed or adjusted . |
onInit | function | (optional) Is called once before mounting the component (useLayoutEffect). Returns the instance of the internal animation class. |