3.0.2 • Published 5 years ago

@app-elements/notification v3.0.2

Weekly downloads
157
License
ISC
Repository
github
Last release
5 years ago

Notification

Displays a notification message.

Installation

npm install --save @app-elements/notification

Usage

import Notification, { showNotification } from '@app-elements/notification'

// Place in your root App component. Should only be rendered once in your DOM tree.
<Notification />

// To show a notification
showNotification({ message: 'PIRATES!' })

showNotification options

PropTypeDefaultDescription
messageStringNoneThe text to display in the notification
typeEnum'error'The class to use for the notication style. One of: [ 'error', 'warning', 'success' ]
lengthNumber3000Time to keep the message displayed in milliseconds
3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

3.0.0-alpha.0

5 years ago

2.0.0

5 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

7 years ago

1.0.0

7 years ago