Skip to content

Textarea Module

The Textarea module provides styled multi-line text inputs with configurable colors, border, background, placeholder styling, focus/disabled/error states, and optional shake animation.

This is a help block
This is a error block

Signature:

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

Example:

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

Textarea module uses the following Termeh global var():

ComponentTypeUsageDefault
baseseparatorColorFallback border colornull
radiusnormalNumberDefault textarea border radiusnull
gapmicroNumberDefault textarea padding8px
line-heightnormalNumberTextarea line height1.6em
inputborderColorDefault textarea border colorFALLBACK
inputplaceholderColorDefault textarea placeholder colorFALLBACK
inputbackgroundColorDefault textarea background colorwhite

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

Color / VariantUsageDefault
errorAccent color for invalid stateerror
primaryDefault accent colorerror
shademuteFallback placeholder 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