@achiga/notifications 中文文档教程
@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
该项目根据 MIT 许可条款获得许可。
@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.
更多
你可能也喜欢
- @20i/react-component-generator 中文文档教程
- @2pi-network/create-app 中文文档教程
- @3rdvision/yonius 中文文档教程
- @4geit/rct-common-store 中文文档教程
- @7r/eslint-config-7r-building 中文文档教程
- @8select/serverless-plugin-webpack 中文文档教程
- @aaronflower/jtils 中文文档教程
- @ablestack/rdo 中文文档教程
- @ackee/antonio-auth 中文文档教程
- @acretrader/validations 中文文档教程