Buttons
Use Bootstrap’s custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more.
https://getbootstrap.com/docs/5.1/components/buttons/Examples
Icon buttons
Hover animated
Social buttons
Various
Icon correction
When using icons, the text is too close because there is no margin.
To avoid using
, Smarty will add required margins to icons and few corrections are needed in some situations:
1. Icon only, no text
class .m-0
added directly to the icon
<!-- bad -->
<a href="#" class="btn btn-primary">
<i class="fi fi-check"></i>
</a>
<!-- good -->
<a href="#" class="btn btn-primary">
<i class="fi fi-check m-0"></i>
</a>
<!-- nothing required -->
<a href="#" class="btn btn-primary rounded-circle">
<i class="fi fi-check"></i>
</a>
2. Icon after text only
text is wrapped inside <span>
<!-- bad -->
<a href="#" class="btn btn-primary">
Bad
<i class="fi fi-arrow-end"></i>
</a>
<!-- good -->
<a href="#" class="btn btn-primary">
<span>Good</span>
<i class="fi fi-arrow-end"></i>
</a>
<!-- nothing required -->
<a href="#" class="btn btn-primary">
<i class="fi fi-arrow-end"></i>
Nothing required
</a>