0.1.0 • Published 5 years ago
v-notifications v0.1.0
v-notifications
Users want to see feedback after their actions. This package can be used to show feedback to users.
Usage
npm install v-notificationsimport 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ç