Tags - National Design System

Compact labels for categorization, status indicators, and metadata display

Variants

Five color variants with outline, rounded, and icon modifiers

Label

Status

Pill-shaped tags with a dot indicator for state representation

Status

On Color

Tags designed for use on colored or dark backgrounds

On Color

Icon Only

Square tags that display only an icon, hiding the label

Built-in Features

Pure CSS

No JavaScript required. Tags render immediately from HTML markup.

Auto-truncation

Labels truncate to a single line with ellipsis, configurable via --truncate.

Flexible Color API

Set color via class (nds-green) for normal tags, or data-status attribute for status indicators.

Works Anywhere

Drop into any component. Works as labels, badges, status indicators, or metadata display.

Usage Guidelines

When to Use

  • Use tags for categorization, labels, and metadata that users need to scan quickly
  • Use status tags when the state needs a visual indicator beyond just color (the dot reinforces meaning for colorblind users)
  • Choose color by meaning: neutral for general labels, success/error/warning/info for semantic status
Was this page useful?
60% of users said Yes from 2843 Feedbacks