mirror of
https://github.com/tabler/tabler.git
synced 2026-07-29 14:34:37 +04:00
51 lines
999 B
Markdown
51 lines
999 B
Markdown
---
|
|
title: Badges
|
|
menu: docs.badges
|
|
done: true
|
|
---
|
|
|
|
A small count and labeling component. Please read the [official Bootstrap documentation](https://getbootstrap.com/docs/4.3/components/badge/) for a full list of options.
|
|
|
|
### Default markup
|
|
|
|
{% example %}
|
|
{% for color in site.colors %}
|
|
<span class="badge bg-{{ color[0] }}">{{ color[0] }}</span>
|
|
{% endfor %}
|
|
{% endexample %}
|
|
|
|
### Pill badges
|
|
|
|
{% example %}
|
|
{% for color in site.colors %}
|
|
<span class="badge badge-pill bg-{{ color[0] }}">{{ forloop.index }}</span>
|
|
{% endfor %}
|
|
{% endexample %}
|
|
|
|
|
|
### Soft badges
|
|
|
|
{% example %}
|
|
{% for color in site.colors %}
|
|
<span class="badge bg-{{ color[0] }}-lt">{{ color[0] }}</span>
|
|
{% endfor %}
|
|
{% endexample %}
|
|
|
|
|
|
### Links
|
|
|
|
{% example %}
|
|
{% for color in site.colors %}
|
|
<a href="#" class="badge bg-{{ color[0] }}">{{ color[0] }}</a>
|
|
{% endfor %}
|
|
{% endexample %}
|
|
|
|
|
|
### Empty badges
|
|
|
|
{% example %}
|
|
{% for color in site.colors %}
|
|
<a href="#" class="badge bg-{{ color[0] }}"></a>
|
|
{% endfor %}
|
|
{% endexample %}
|