1
0
mirror of https://github.com/tabler/tabler.git synced 2026-07-29 14:34:37 +04:00
Files
tabler/pages/_docs/badges.md
T
2019-12-08 20:02:16 +01:00

1.4 KiB

title, menu, done
title menu done
Badges docs.badges true

A small count and labeling component. Please read the official Bootstrap documentation for a full list of options.

Default markup

{% example %} {% for color in site.colors %} {{ color[0] }} {% endfor %} {% endexample %}

Pill badges

To make a pill bagde (with rounded corners) add .bagde-pill class.

{% example %} {% for color in site.colors %} {{ forloop.index }} {% endfor %} {% endexample %}

Soft badges

Creates a soft variant of a corresponding contextual badge variation. You can click [here]({% docs_url colors %}) to see the list of available colors.

{% example %} {% for color in site.colors %} {{ color[0] }} {% endfor %} {% endexample %}

Make a badge work as a link by putting it into an <a> element.

{% example %} {% for color in site.colors %} {{ color[0] }} {% endfor %} {% endexample %}

Empty badges

If you don't want your badge to contain any text you can do it by leaving the html element empty.

{% example %} {% for color in site.colors %} {% endfor %} {% endexample %}