1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-26 11:16:12 +04:00
Files
tabler/pages/_docs/alerts.md
2019-07-21 20:11:38 +03:00

2.1 KiB

title, menu, done
title menu done
Alerts docs.alerts true

Bootstrap provides an easy way to create predefined alert messages.

Default markup

{% example %} {% for variant in site.variants %} {% capture variant-text %} This is a {{ variant.name }} alert — check it out! {% endcapture %} {% include ui/alert.html type=variant.name text=variant-text %} {% endfor %} {% endexample %}

Add the alert-link class to any links inside the alert box to create "matching colored links":

{% example %} {% for variant in site.variants %} {% capture variant-text %} This is a {{ variant.name }} alert — check it out! {% endcapture %} {% include ui/alert.html type=variant.name text=variant-text %} {% endfor %} {% endexample %}

Dismissible Alerts

{% example %} {% for variant in site.variants %} {% capture variant-text %} This is a {{ variant.name }} alert — check it out! {% endcapture %} {% include ui/alert.html type=variant.name text=variant-text close=true %} {% endfor %} {% endexample %}

Alerts with icons

{% example %} {% for variant in site.variants %} {% capture variant-text %} This is a {{ variant.name }} alert — check it out! {% endcapture %} {% include ui/alert.html type=variant.name icon=variant.icon text=variant-text %} {% endfor %} {% endexample %}

Alert with avatar

{% assign person = site.data.people[1] %} {% example %} {% for variant in site.variants %} {% capture variant-text %} Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing elit. {% endcapture %} {% include ui/alert.html type=variant.name text=variant-text avatar=true person=person %} {% endfor %} {% endexample %}

Alert with buttons

{% example %} {% capture variant-text %}

Some Title

Lorem ipsum Minim ad pariatur eiusmod ea ut nulla aliqua est quis id dolore minim voluptate.

{% endcapture %} {% include ui/alert.html type='success' close=true text=variant-text buttons=true %} {% endexample %}