Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id fermentum quam. Proin sagittis, nibh id hendrerit imperdiet, elit sapien laoreet elit
Notification will be automatically closed after duration
.
# Types
# Icons
# Auto Close
Notification will be automatically closed after duration
.
# Programmatically opening
# From outside Vue instance
You can use it on Vuex or VueRouter using this syntax:
Name | Description | Type | Values | Default |
---|---|---|---|---|
type | Type (color) of the notification, optional | String | is-white , is-black , is-light ,
is-dark , is-primary , is-info , is-success ,
is-warning , is-danger ,
and any other colors you've set in the $colors list on Sass | — |
active | Whether notification is active or not, use the .sync modifier to make it two-way binding | Boolean | — | true |
closable | Adds an 'X' button that closes the notification | Boolean | — | true |
auto-close | Hide notification after duration only not programmatic | Boolean | — | false |
duration | Visibility duration in miliseconds | Number | — | 2000 |
icon-pack | Icon pack to use | String | mdi , fa , fas , far , fad , fal | mdi |
has-icon | Adds an icon on the left side depending on the type | Boolean | — | false |
aria-close-label | Label for the close button, to be read by accessibility screenreaders. | String | — | — |
message | Message text | String | — | — |
position | Which position the notification will appear when programmatically | String | is-top-right , is-top , is-top-left , is-bottom-right , is-bottom , is-bottom-left | is-bottom-right |
queue | If should queue with others notices (snackbar/toast/notification) | Boolean | — | true |
indefinite | Show the Notification indefinitely until it is dismissed when programmatically | Boolean | — | false |
container | DOM element the toast will be created on. Note that this also changes the position of the toast from fixed to absolute . Meaning that the container should be fixed . | String | — | body |
This page is open source. Noticed a typo or something's unclear?