Chips - National Design System

Interactive elements for selections, filtering, and categorization

Standard

Two color variants across all interaction states

Chip Group

Wrap multiple chips for consistent spacing and flow layout

Built-in Features

Pure CSS

No JavaScript required. All variants, sizes, and states render from HTML markup.

Interactive States

Hover, pressed, selected, focused, and disabled with focus-visible ring.

Label Truncation

Labels auto-truncate with ellipsis, configurable via --truncate.

Composable

Combine with icons, rounded shape, on-color variant, and chip groups.

Usage Guidelines

When to Use

  • Use chips for interactive selections like filters, categories, and multi-select options
  • Use primary for emphasis and neutral for standard options. Selected state is handled by the selected class
  • For non-interactive labels and metadata display, use tags instead
  • Group related chips together for filter bars, category selectors, and multi-select inputs
  • Add leading icons when the chip represents a category with a recognizable symbol
Was this page useful?
60% of users said Yes from 2843 Feedbacks