mirror of
https://github.com/tabler/tabler.git
synced 2026-07-30 23:14:39 +04:00
add button with star and avatar
This commit is contained in:
@@ -79,6 +79,14 @@ In need of a button, but not the hefty background colors they bring? Replace the
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endexample %}
|
{% endexample %}
|
||||||
|
|
||||||
|
## Button with star
|
||||||
|
|
||||||
|
{% example html %}
|
||||||
|
{% for button in site.button_variants %}
|
||||||
|
{% include ui/button.html text="Button" label="star" color=button.name class="mr-2" %}
|
||||||
|
{% endfor %}
|
||||||
|
{% endexample %}
|
||||||
|
|
||||||
### Button size
|
### Button size
|
||||||
|
|
||||||
Add `.btn-lg` or `.btn-sm` for additional sizes.
|
Add `.btn-lg` or `.btn-sm` for additional sizes.
|
||||||
@@ -246,3 +254,12 @@ Use the `.text-center` or the `.text-right` modifiers to alter the alignment.
|
|||||||
<a href="#" class="btn btn-secondary">Save and continue</a>
|
<a href="#" class="btn btn-secondary">Save and continue</a>
|
||||||
</div>
|
</div>
|
||||||
{% endexample %}
|
{% endexample %}
|
||||||
|
|
||||||
|
### Button with avatar
|
||||||
|
|
||||||
|
{% example html%}
|
||||||
|
<a href="#" class="btn btn-secondary mr-2">{% include ui/avatar.html person-id="4" class="btn-avatar" %} Avatar</a>
|
||||||
|
<a href="#" class="btn btn-secondary mr-2">{% include ui/avatar.html person-id="5" class="btn-avatar" %} Avatar</a>
|
||||||
|
<a href="#" class="btn btn-secondary mr-2">{% include ui/avatar.html person-id="6" class="btn-avatar" %} Avatar</a>
|
||||||
|
{% endexample %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user