Badges
Badges or states, as you prefer to call them, can be used in your tables or other places. Here is an example of how to use them:
<span className="state is-primary">Primary</span>
There are several options available: default, primary, secondary, tertiary, danger, warning, success, info, white, gray, and dark.
Default badges
<span class="state is-primary">
Default
</span>
Outline badges
You can use outline badges, which have only borders and no background, to add a different style. Here are some classes that you can use:
These classes can be used to create different colored outline badges.
is-primary-outline, is-secondary-outline, is-tertiary-outline, is-danger-outline, is-warning-outline, is-success-outline, and is-info-outline.
<span class="state is-primary-outline">
Outline
</span>
Semi transparent badges
You can use semi-transparent badges by adding the class semi-transparent
to add transparency to the background of badges, which can add a different style to your website.
<span class="state is-primary semi-transparent">
Semi-transparent
</span>
Badges with icons
<span class="state has-icon is-primary">
Primary <your-icon>
</span>
Just has the class has-icon and the icon.
Other styles
<span class="... is-flat">
...
</span>
<span class="... is-circle">
...
</span>
<span className="... is-small">
...
</span>
<span className="... is-large">
...
</span>