3.0.2 • Published 4 years ago

@app-elements/notification v3.0.2

Weekly downloads
157
License
ISC
Repository
github
Last release
4 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

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

3.0.0-alpha.0

4 years ago

2.0.0

4 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.0

6 years ago