11 KiB
layout | title |
---|---|
page | Boxes Components |
There are two types of boxes, info boxes & small boxes. Both boxes are used to display statistical snippets.
Info Box
{: .text-bold .text-dark .mt-4}
Note!
To wrap the text in to a new line add to the info-box-text the class text-wrap. To truncate the text with ... add to the info-box-content the class text-truncate. (Here you should add a tooltip to display the whole pharse) {: .quote-danger}
Info Box with Progress Bar
{: .text-bold .text-dark .mt-4}
Small Box
{: .text-bold .text-dark .mt-4}
150
New Orders
44
User Registrations
150
New Orders
44
User Registrations
Loading Style
{: .text-bold .text-dark .mt-5}
To simulate a loading state, simply place this code before the .info-box
/ .small-box
closing tag.
Tip!
We recommend
.fa-2x
for Info Boxes and.fa-3x
for Small Boxes to get a nicely sized loading icon,
like in this documentation. {: .quote-info}
<div class="overlay">
<i class="fas fa-2x fa-sync-alt fa-spin"></i>
</div>
150
New Orders
You can also use a dark loading style with adding .dark
to .overlay
like this code.
<div class="overlay dark">
<i class="fas fa-2x fa-sync-alt fa-spin"></i>
</div>
150
New Orders