Skip to content

Select Module

The Select module provides styled dropdown inputs with configurable colors, border, background, placeholder styling, focus/disabled/error states, and optional shake animation. It also supports custom icons and checked option styling.

This is a help block
This is a help block
This is a error block

Signature:

scss
@mixin use-select($colors: ());

Example:

scss
@include termeh.use-select(("primary", "error"));
Dependencies

Select module uses the following Termeh global var():

ComponentTypeUsageDefault
baseseparatorColorFallback border colornull
radiusnormalNumberDefault input border radiusnull
gapmicroNumberSpacing between select items8px
inputheightNumberInput height2.8em
inputborderColorDefault input border colorFALLBACK
inputplaceholderColorDefault input placeholder colorFALLBACK
inputbackgroundColorDefault input background colorwhite
inputdisabled-foregroundColorDisabled option text colornull

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

Color / VariantUsageDefault
errorAccent color for invalid stateerror
primaryDefault accent colorerror
primaryforegroundDefault accent colornull
primaryreadableDefault accent colornull
shademuteFallback placeholder colornull
basesectionItem hover background colornull

Modifiers

  • .is-focused / :focus → applies focus styling
  • .is-invalid / :invalid → applies error styling with shake animation
  • .is-disabled / :disabled → applies disabled styling
  • .is-<color> → applies a registered color as accent color