Labels

Labels are useful inline components that can be dropped into body copy to call out certain sections or to attach metadata. For example, you can attach a label that notes when something was updated.

Basic

Render a label with the .label class.

Default Label
<!-- Example label -->
<span class="label">Default Label</span>
NOTE: The way in which the label element is architected (with regard, specifically, to its sizing) in LV-Foundation is very different from the way in which it is architected in Foundation by default.

Sizing

By default, a label will size itself responsively with regard to its neighboring context. Take, for example:

This is a label inside a paragraph.Default Label

This is a label inside an h3.Default Label

<!-- Labels change size with their parents by default -->
<p>This is a label inside a paragraph.<span class="label">Default Label</span></p>
<h3>This is a label inside an h3.<span class="label">Default Label</span></h3>

If you would like to render your label with a fixed size, you may do so with any of the standard accompanying size classes, as seen with buttons.

Tiny Label Small Label Medium Label Large Label
<!-- Example sized labels -->
<span class="label tiny">Tiny Label</span>
<span class="label small">Small Label</span>
<span class="label medium">Medium Label</span>
<span class="label large">Large Label</span>

Colors

You may also add priorital / contextual colors to your labels.

Priorital Colors

Secondary Label Tertiary Label
<!-- Example priorital labels -->
<span class="label small secondary">Secondary Label</span>
<span class="label small tertiary">Tertiary Label</span>

Contextual Colors

Success Label Warning Label Alert Label Info Label
<!-- Example contextual labels -->
<span class="label small success">Success Label</span>
<span class="label small warning">Warning Label</span>
<span class="label small alert">Alert Label</span>
<span class="label small info">Info Label</span>