Users want to see feedback after their actions. This package can be used to show feedback to users.
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 |
- success
- danger
- warning
- bottom-right
- bottom-left
- bottom-center
- notification('Hello World');
- notification('Hello World', 'danger');
- notification('Hello World', 'warning', 'bottom-left');
MIT © Şevki Oruç