Skip to content

Tag Module

The Tag module provides label-like UI elements with support for colors, sizes, rounded/action states, and loading/disabled variants. It extends the Element module.

Default
Clickable
Loading
Disabled
Primary
Clickable
Loading
Disabled
Green
Clickable
Loading
Disabled
Indigo
Clickable
Loading
Disabled
Maroon
Clickable
Loading
Disabled

Signature:

scss
@mixin use-tag($colors: (), $sizes: ());

Example:

scss
@include termeh.use-tag(("primary", "success"), ("small", "medium"));
Dependencies

Tag module uses the following Termeh global var():

ComponentTypeUsageDefault
radiusnormalNumberDefault tag border radiusnull
radiusroundedNumberRounded tag border radiusnull
decoratorsizeColorLoading spinner thicknessnull
controlheightNumberDefault tag height2.2em

Tag module uses the following Termeh color() and variant():

Color / VariantUsageDefault
shadeDefault focus/active outline colorerror
shadereadableDefault text/icon colornull
shadelightDefault tag background colornull

Modifiers

  • .is-action → makes icon clickable
  • .is-rounded → applies rounded border-radius
  • .is-loading → applies loading state
  • .is-disabled → applies disabled state
  • .is-<size> → applies a registered size as font size
  • .is-<color> → applies a registered color as accent color