0.1.0 • Published 2 years ago

@tiny-components/notification v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Tiny Components - Notification

Created with Riot.js

Handle notification by using Plain-UI and Observable

Install

npm install @tiny-components\notification --save

You can use it like this

Add to your App once, don't forget to register and mount,

<tiny-notification></tiny-notification>

Call function anywhere, to run through the store and display a notification.

import notificationStore from './@tiny-components/notification/src/notificationStore.js'
notificationStore.danger('Error! Something is wrong')

Options

attributedescriptionvalues
wrapper-classPosition for notification to showtoast-wrapper--right, toast-wrapper--top
timeoutHow long notifications show upin ms