1.1.8 • Published 4 years ago
@achiga/notifications v1.1.8
@achiga/notifications
Install
npm install @achiga/notifications
Usage
To use this module, pass in a data object for styles and notification data
Styles structure:
{
button: {
backgroundColor: '',
color: ''
},
headline: {
color: ''
},
body: {
color: ''
},
icon: {
fill: ''
}
}
Additions 1.1.0 -
This package now accepts a boolean from the parent to detect if the mouse has left the browser(required)
Accepts an optional pageUrl param that will trigger a re-render when the route is changed
Example
import AchigaNotifications from '@achiga/notifications'
class Example extends Component {
render () {
return (
<AchigaNotifications cursorLeftPage={bool} pageUrl={pageUrl} data={notificationData} styles={styles} />
)
}
}
License
This project is licensed under the terms of the MIT license.
1.1.9
1 year ago
1.1.8
4 years ago
1.1.7
4 years ago
1.1.6
4 years ago
1.1.5
4 years ago
1.1.4
4 years ago
1.1.1
4 years ago
1.1.3
4 years ago
1.1.2
4 years ago
1.1.0
4 years ago
1.0.16
4 years ago
1.0.15
4 years ago
1.0.14
4 years ago
1.0.13
4 years ago
1.0.12
4 years ago
1.0.11
4 years ago
1.0.10
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago