Component-wrapper for collapse animation with css for elements with variable and dynamic height
npm install react-css-collapse


``jsx
import Collapse from 'react-css-collapse';
content
`
#### isOpen: PropTypes.boolean
Expands or collapses content.
#### children: PropTypes.node
` Paragraph of text Another paragraph is also OK Images and any other content are ok toojs`

#### className: PropType.stringreact-css-collapse-transition
Specify transition using the class selector with transition or the style property.
The class selector is added by default unless you specify your own. transition
The default transition can be overridden using the prop, or with custom styling 👇. Note: replace the selector with your selector if you have specified a different className.
`scss`
.react-css-collapse-transition {
transition: height 250ms cubic-bezier(.4, 0, .2, 1);
}
#### onRest: PropTypes.funcheight
Callback function for when your transition on (specified in className) is finished. It can be used to trigger any function after transition is done.
Collapse transfers aria- and data- attributes to the component's rendered DOM element. For example this can be used to set the aria-hidden attribute:
` Paragraph of textjs`
.`bash
git clone [repo]
cd [repo]
npm install
npm run storybook
``