Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id fermentum quam. Proin sagittis, nibh id hendrerit imperdiet, elit sapien laoreet elit
Many colors with light variant.
# Types
Many colors with light variant.
# Icons
# Auto Close
Notification will be automatically closed after duration
.
# Auto Close With Progress Bar
Notification will be automatically closed after duration
with a progress bar which indicates the delay passed.
# Programmatically opening
# From outside Vue instance
You can use it on Vuex or VueRouter using this syntax:
Name | Description | Type | Values | Default |
---|---|---|---|---|
v-model | Active state - set on `true` to reopen after close | Boolean | — | true |
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 | Boolean | — | false |
duration | Visibility duration in miliseconds | Number | — | 2000 |
progress-bar | remaining seconds before the alert will close (in seconds) | Boolean | — | false |
animation | Custom animation (transition name) | String | — | fade |
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 (or the icon prop if defined) | Boolean | — | false |
icon | Icon name to use with has-icon | Boolean | — | — |
icon-size | Size of the icon, optional | String | is-small , is-medium , is-large | Depends on size prop |
aria-close-label | Label for the close button, to be read by accessibility screenreaders. | String | — | — |
message | Message text (can contain HTML). Dynamically rendering arbitrary HTML on your website can be very dangerous because it can easily lead to XSS vulnerabilities. Only use HTML interpolation on trusted content and never on user-provided content. | String, Array | — | — |
position | Which position the notification will appear when opened programmatically | String | is-top-right , is-top , is-top-left , is-bottom-right , is-bottom , is-bottom-left | is-top-right |
queue | If should queue with others notices (snackbar/toast/notification) | Boolean | — | true |
indefinite | Show the Notification indefinitely until it is dismissed when opened programmatically | Boolean | — | false |
pause-on-hover | Pause and show on hover until hover off when opened programmatically, if indefinite is false. | 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 |
You can use these variables to customize this component.
Name | Default |
---|---|
Bulma variables | Link |
This page is open source. Noticed a typo or something's unclear?