v-notifications

A Vue.js project

Usage no npm install needed!

<script type="module">
  import vNotifications from 'https://cdn.skypack.dev/v-notifications';
</script>

README

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ç