The content node to be collapsed.
The height of the container when collapsed.
The component used for the root node. Either a string to use a DOM element or a component.
If true
, the component will transition in.
The duration for the transition, in milliseconds. You may specify a single timeout for all transitions, or individually with an object.
Set to ‘auto’ to automatically calculate transition time based on height.
The Collapse transition is used by the Vertical Stepper StepContent component. It uses react-transition-group internally. Demos:
API:
- Collapse API
- inherits Transition API
The Collapse transition is used by the Vertical Stepper StepContent component. It uses react-transition-group internally.
Name | Type | Description |
---|---|---|
children | node | The content node to be collapsed. |
classes | object | Override or extend the styles applied to the component. See CSS API below for more details. |
className | string | |
collapsedHeight | number | string | The height of the container when collapsed. |
component | elementType | The component used for the root node. Either a string to use a DOM element or a component. |
in | bool | If |
onEnter | function | |
onEntered | function | |
onEntering | function | |
onExit | function | |
onExiting | function | |
style | object | |
timeout | 'auto' | number | {"appear":"number","enter":"number","exit":"number"} | The duration for the transition, in milliseconds. You may specify a single timeout for all transitions, or individually with an object. Set to ‘auto’ to automatically calculate transition time based on height. |