Skip to content

Commit

Permalink
Peer dependencies removed, no longer needs a specific react version
Browse files Browse the repository at this point in the history
  • Loading branch information
jciccio committed Mar 25, 2024
1 parent c0aa5a3 commit cd4d40e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,6 @@ New! Now the banner accepts a list of children to display all content data
</Banner>
```

Props available:
* title (banner title/message)
* css (style for the banner)
* visibleTime (time in ms that the banner will be shown)
* image (image to show left of banner)
* imageClass (css class to customize image)


# Props

| Name | Type | Mandatory | Description
Expand All @@ -108,6 +100,7 @@ Props available:
| transitionAppearTime | number| N| time for the banner to appear |
| transitionTime | number | N| time for the transition to take |
| showBanner | bool | N| force the banner to show or hide, this will override the `visibleTime` variable |
| onHideCallback | function | N| callback when the popup hides (to be used with visible time prop in manage state) |

# Donations

Expand All @@ -121,6 +114,9 @@ https://patreon.com/Jacware

# Changelog

### v0.7.0
* New function callback when the popup hides. This should be used with the visible time prop.

### v0.6.1
* Removed Polyfill Dependency
* Package size decreased!
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"description": "React JS Banner component customizable with auto hide option",
"main": "build/index.js",
"peerDependencies": {
"react": "^16.8.0"
},
"dependencies": {

Expand Down

0 comments on commit cd4d40e

Please sign in to comment.