1.1.8 • Published 5 years ago

@achiga/notifications v1.1.8

Weekly downloads
11
License
MIT
Repository
-
Last release
5 years ago

@achiga/notifications

NPM JavaScript Style Guide

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

2 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.1

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.0

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago