🚨 Alert! Alert! for VueJS
A minimalist alert plugin for VueJS projects.
Install from npm:
npm install vue-alert-alert
Add the plugin to your Vue project:
Vue
Add the <alert-alert>
component to the root of your app (ex: App.vue):
Use the plugin
this$Alert
Available Options
- type - May be: 'info', 'success', 'warning', or 'error'. This sets the CSS class on the alert with an appropriate color. Defaults to 'info'.
- message - The text to show in the alert. You may use HTML mark-up. Defaults to 'No Content'
- timeout - Auto-dismiss the alert after the given timeout (in milliseconds). Defaults to
null
.