v-notifications

0.1.0 • Public • Published

v-notifications

Users want to see feedback after their actions. This package can be used to show feedback to users.

Usage

npm install v-notifications
import notification from 'v-notifications/index.js';
 
notification(message, state, position);

Parameter Default Type
message null string
state success string
position bottom-right string

State values

  • success
  • danger
  • warning

Position values

  • bottom-right
  • bottom-left
  • bottom-center

Examples

- notification('Hello World');
 
- notification('Hello World', 'danger');
 
- notification('Hello World', 'warning', 'bottom-left');

🔑 License

MIT © Şevki Oruç

Readme

Keywords

Package Sidebar

Install

npm i v-notifications

Weekly Downloads

2

Version

0.1.0

License

MIT

Unpacked Size

6.17 kB

Total Files

5

Last publish

Collaborators

  • sevkioruc