Default
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id fermentum quam. Proin sagittis, nibh id hendrerit imperdiet, elit sapien laoreet elit
# Types
# Icons
# Headerless
Message without title becomes headerless, they are always non-closable.
# Custom Header
It is also possible to customize the header using the corresponding slot.
# Sizes
# Auto Close
Message will be automatically closed after duration
.
# Auto Close With Progress Bar
Message will be automatically closed after duration
with a progress bar which indicates the delay passed.
Name | Description | Type | Values | Default |
---|---|---|---|---|
type | Type (color) of the message, 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 — works if has a title | 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 |
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 | — | — |
size | Size of the control, optional | String | is-small , is-medium , is-large | — |
icon-size | Size of the icon, optional | String | is-small , is-medium , is-large | is-large or size prop |
title | Message title | String | — | — |
aria-close-label | Label for the close button, to be read by accessibility screenreaders. | String | — | — |
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?