Components

← All components

ChipGroup / Chip

src/lib/components/chip.tsx·size (lg · sm) · selected · multiple · readOnly

Guide

tentative
  • Outlined option pills: lg for option pickers ("throughput", "vLLM"), sm for numbers ("8 16 32").
  • Pass a list to selected for a multi-select group (benchmark concurrency levels).
  • When a dependency changes and a chosen option stops being allowed (a level above a lowered Max concurrency), give it the unsupported state and say why in the Field's error — keep it selected so the user decides (PRD 01: identify unsupported levels).
  • Use the disabled state for an option that can't be chosen now and isn't chosen.
  • Set one state per chip (default · selected · unsupported · disabled) — a single union, so two looks can't combine. In a ChipGroup, selected gives selected or default; an option's state overrides it.
  • Don't silently deselect an option that became unsupported.
  • Don't make a chosen option that became invalid disabled — mark it unsupported, or the user couldn't remove it.
  • The selected look is derived from tokens — Figma never shows a selected chip.
  • The unsupported and disabled looks have no Figma source.

Related: Select, SliderSources: src/lib/components/chip.tsx · docs/product/prd-01-inference-custom-configuration.md · docs/product/configuration-redesign-plan.md

size=lg

size=lg selected

vLLMSGLang

size=lg readOnly selected

size=sm

size=sm multiple selected

8163264128256

size=sm readOnly