Alert

An alert is a colored notification block generally used to catch the attention of your users of something important. An alert can be created adding the alert class to a <div> tag.

Lorem ipsum dolor sit amet, consectetur adipiscing elit...
<div class="alert has-mb-0">
    Lorem ipsum dolor sit amet, consectetur adipiscing elit...
</div>

We provide an is-secondary modifier for using the secondary color defined in your theme as the background color of the alert:

Lorem ipsum dolor sit amet, consectetur adipiscing elit...
<div class="alert is-secondary has-mb-0">
    Lorem ipsum dolor sit amet, consectetur adipiscing elit...
</div>

You can add a close button to the alert using the close element:

Content of the alert message
<div class="alert has-mb-0">
    <div>Content of the alert message</div>
    <div class="close has-ml-auto"></div>
</div>
Customize

The alert element will apply the styles defined in the alerts field of your theme configuration.

siimple.config.js
export default {
    alerts: {
        backgroundColor: "primary",
        color: "white",
    },
    // ...other configuration
};

If you use the alerts group for more mixins, this element will use alerts.default instead:

siimple.config.js
export default {
    alerts: {
        default: {
            backgroundColor: "primary",
            color: "white",
        },
        // ...other additional alerts mixins
    },
    // ...other configuration
};
Designed, built and maintained with by @jmjuanes.
Code is licensed under MIT, documentation under Creative Commons Attribution 4.0.