- BREAKING: Removes
TinyCollapse.propTypes, removesprop-typesas peer dependency - Adds TypeScript typings
Adds react@^18.0.0 and react-dom@^18.0.0 as peer dependencies
Adds react@^17.0.0 and react-dom@^17.0.0 as peer dependencies
- Adds changelog! 🙈
- Adds support for using
styleincomponentProps. Inline styles set byreact-tiny-collapsewill override user styles when there's a collision. - Adds support for using function components using
React.forwardRefascomponent
- Renames
unmountClosedtounmountChildren - Makes
falsethe default value forunmountChildren - Makes
falsethe default value foranimateChildren
unmountClosed was a confusing name, and options that default to true are not nice.