Configuration options for the collapse transition.
optionalanimationPendingClasses:string[]
the list of classes to add to the collapsable element while transitioning
optionaldimension:"height"|"width"
the direction in which the collapsing is performed
optionalhideClasses:string[]
the list of classes to add to the collapsable element when collapsed
optionalshowClasses:string[]
the list of classes to add to the collapsable element when shown
Represents the context for a collapsible element.
optionalmaxSize:string
the maximum size of the collapseable content.
optionalminSize:string
the minimum size of the collapseable content
createCollapseTransition(
config):TransitionFn
Create a collapse transition.
The transition attaches / removes classes during the different states of the collapse transition. It also updates the dimension value when reaching a non-pending state.
CollapseConfig = {}
the collapse config
the collapse transition