Tag
Last updated: 9/21/21
A short piece of interactive text.
Base
Use the base class pier-tag
to create a Tag element.
HTML markup
<span class="pier-tag" tabindex="0">Default Tag</span>
Sizes
Use the modifier classes pier-tag--sm
, pier-tag--md
, or pier-tag--lg
to change the size of the Tag.
Small TagMedium TagLarge Tag
HTML markup
<span class="pier-tag pier-tag--sm -m-r-5" tabindex="0">Small Tag</span
><span class="pier-tag pier-tag--md -m-r-5" tabindex="0">Medium Tag</span
><span class="pier-tag pier-tag--lg" tabindex="0">Large Tag</span>
Styles
Use the modifier class pier-tag--hero
to change the theme of the Tag.
HTML markup
<span class="pier-tag -m-r-5" tabindex="0">Default Tag</span
><span class="pier-tag pier-tag--hero -m-r-5" tabindex="0">Hero Tag</span>
Disabled
Use the modifier class pier-tag--disabled
to change the state of the Tag to disabled.
HTML markup
<span class="pier-tag pier-tag--disabled">Disabled Tag</span>
Pill
Use the modifier class pier-tag--pill
to change the the style of the Tag to pilled.
HTML markup
<span class="pier-tag pier-tag--pill" tabindex="0">Pill Tag</span>
Static
Use the modifier class pier-tag--static
to change the state of the Tag to static.
HTML markup
<span class="pier-tag pier-tag--static" tabindex="0">Static Tag</span>
Dark
Use the modifier class pier-tag--dark
to change the style of the Tag for dark UI themes.
HTML markup
<span class="pier-tag pier-tag--dark -m-r-5" tabindex="0">Dark Tag</span
><span class="pier-tag pier-tag--dark pier-tag--hero -m-r-5" tabindex="0"
>Dark Hero Tag</span
>
© 2021 Gumgum, Inc.