Chakra exports four components Fade, ScaleFade, Slide, and SlideFade to
provide simple transitions.
Most transition components are made using framer-motion. They accept the
following props:
motion elementsin prop used to trigger the transitionunmountOnExit prop used to unmount the component when it's not visible.The Collapse component is used 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.
The transition components extends the framer-motion.
| Name | Type | Default | Description | 
|---|---|---|---|
| in | boolean | false | Show the component; triggers the enter or exit states | 
| Name | Type | Default | Description | 
|---|---|---|---|
| in | boolean | false | Show the component; triggers the enter or exit states | 
| initialScale | number | 0.9 | The initial scale to animate from | 
| Name | Type | Default | Description | 
|---|---|---|---|
| in | boolean | false | Show the component; triggers the enter or exit states | 
| placement | string | 'bottom' | The direction to slide drawer from | 
| Name | Type | Default | Description | 
|---|---|---|---|
| in | boolean | false | Show the component; triggers the enter or exit states | 
| offsetX | string | '20px' | The initial offset to slide from | 
| offsetY | string | '20px' | The initial offset to slide from | 
This component doesn't have any custom props.
| Name | Type | Description | 
|---|---|---|
| isOpen | boolean | If true, the content will be visible | 
| animateOpacity | boolean | If true, the opacity of the content will be animated | 
| startingHeight | number | The height you want the content in it's collapsed state. Set to 0by default |