react-slidedown
Advanced tools
Comparing version 2.4.5 to 2.4.6
{ | ||
"name": "react-slidedown", | ||
"version": "2.4.5", | ||
"version": "2.4.6", | ||
"description": "Component for animating height during mount/unmount using a CSS transition", | ||
@@ -51,4 +51,4 @@ "main": "lib/slidedown.js", | ||
"peerDependencies": { | ||
"react": "^16.3.0", | ||
"react-dom": "^16.3.0" | ||
"react": "^16.3.0 || 17", | ||
"react-dom": "^16.3.0 || 17" | ||
}, | ||
@@ -59,3 +59,4 @@ "files": [ | ||
"lib/**/*.css", | ||
"lib/**/*.d.ts" | ||
"lib/**/*.d.ts", | ||
"lib/**/*.tsx" | ||
], | ||
@@ -62,0 +63,0 @@ "repository": "frankwallis/react-slidedown", |
@@ -54,5 +54,7 @@ react-slidedown | ||
|:---|:---|:---|:---:|:---| | ||
| closed | Boolean | `false` | No | If `false` renders in closed mode, if `true` then slides down | | ||
| children | Children | | No | When provided the component opens and when removed the component closes | | ||
| closed | Boolean | | No | If `true` the component will close even if children are provided | | ||
| className | String | | No | CSS class name to be used in addition to the `react-slidedown` class name | | ||
| transitionOnAppear | Boolean | `true` | No | Do a transition animation on [`componentWillAppear()`](https://reactjs.org/docs/animation.html#componentwillappear) | | ||
| transitionOnAppear | Boolean | `true` | No | Do a transition animation on initial mount | | ||
| as | String | `div` | No | The outermost Element type to render | | ||
@@ -59,0 +61,0 @@ ## Example ## |
20969
8
262
91