Label

Documentation and examples for label, our small count and labeling component.

Contextual variations

Add any of the below mentioned modifier classes to change the appearance of a label.

By default, label styles are pilled.

Primary Secondary Success Danger Warning Info Indigo Light White Dark White
                  
                    <span class="u-label u-label--primary">Primary</span>
                    <span class="u-label u-label--secondary">Secondary</span>
                    <span class="u-label u-label--success">Success</span>
                    <span class="u-label u-label--danger">Danger</span>
                    <span class="u-label u-label--warning">Warning</span>
                    <span class="u-label u-label--info">Info</span>
                    <span class="u-label u-label--indigo">Indigo</span>
                    <span class="u-label u-label--light">Light</span>
                    <span class="u-label u-label--white">White</span>
                    <span class="u-label u-label--dark">Dark</span>
                    <span class="u-label u-label--white">White</span>
                  
                

Sizes

Add .u-label--sm or .u-label--xs for additional sizes.

                  
                    <a href="#" class="u-label u-label--primary">Medium size</a>
                    <a href="#" class="u-label u-label--secondary">Medium size</a>
                  
                
                  
                    <a href="#" class="u-label u-label--sm u-label--primary">Small size</a>
                    <a href="#" class="u-label u-label--sm u-label--secondary">Small size</a>
                  
                
                  
                    <a href="#" class="u-label u-label--xs u-label--primary">Extra small size</a>
                    <a href="#" class="u-label u-label--xs u-label--secondary">Extra small size</a>