mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-18 10:52:19 +01:00
Add doc example with badge links (#21674)
This commit is contained in:
parent
5eb67091b5
commit
1528516dd6
@ -53,3 +53,16 @@ Use the `.badge-pill` modifier class to make badges more rounded (with a larger
|
|||||||
<span class="badge badge-pill badge-warning">Warning</span>
|
<span class="badge badge-pill badge-warning">Warning</span>
|
||||||
<span class="badge badge-pill badge-danger">Danger</span>
|
<span class="badge badge-pill badge-danger">Danger</span>
|
||||||
{% endexample %}
|
{% endexample %}
|
||||||
|
|
||||||
|
## Links
|
||||||
|
|
||||||
|
Using the `.badge` classes with the `<a>` element quickly provide _actionable_ badges with hover and focus states.
|
||||||
|
|
||||||
|
{% example html %}
|
||||||
|
<a href="#" class="badge badge-default">Default</a>
|
||||||
|
<a href="#" class="badge badge-primary">Primary</a>
|
||||||
|
<a href="#" class="badge badge-success">Success</a>
|
||||||
|
<a href="#" class="badge badge-info">Info</a>
|
||||||
|
<a href="#" class="badge badge-warning">Warning</a>
|
||||||
|
<a href="#" class="badge badge-danger">Danger</a>
|
||||||
|
{% endexample %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user