@tiny-components/notification (0.1.0)

Published 3 weeks ago by HerrHase

Installation

@tiny-components:registry=https://git.node001.net/api/packages/tiny-components/npm/
npm install @tiny-components/notification@0.1.0
"@tiny-components/notification": "0.1.0"

About this package

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

attribute description values
wrapper-class Position for notification to show toast-wrapper--right, toast-wrapper--top
timeout How long notifications show up in ms

Dependencies

Dependencies

ID Version
@riotjs/observable ^4.1.1
@tiny-components/plain-ui ^0.6.0
riot ^6.1.2
uuid ^8.3.2

Development Dependencies

ID Version
@riotjs/webpack-loader ^6.0.0
laravel-mix ^6.0.43
laravel-mix-purgecss ^6.0.0
sass ^1.51.0
sass-loader ^12.6.0
svg-spritemap-webpack-plugin ^4.4.0
Details
npm
3 weeks ago
1
Björn Hase
MIT
latest
384 KiB
Assets (1)
Versions (1) View all
0.1.0 on 2024-04-11