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"));

Module:

This module is registered as tag in the presented modules.

Dependencies

Tag module uses the following Termeh global var():

ComponentTypeUsageDefault
radius → normalNumberDefault tag border radiusnull
radius → roundedNumberRounded tag border radiusnull
decorator → sizeColorLoading spinner thicknessnull
control → heightNumberDefault tag height2.2em

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

Color / VariantUsageDefault
shadeDefault focus/active outline colorerror
shade → readableDefault text/icon colornull
shade → lightDefault 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