Chip
Chips are compact pills: interactive chips filter, apply, suggest, or assist, and status chips, dot pills, inline status, and code tags label a state or a kind.
When to use
- Filter chips turn filters on and off above a list, several at once ("Students", "Staff") or one at a time ("Any status", "Active").
- Input chips show the filters or values someone applied, each one removable ("Full-time", "Remote").
- Suggestion chips offer ready-made searches or prompts ("Jobs in Lebanon", "Fresh graduates").
- Assist chips run a small helper action next to content ("Copy address").
- Status chips label the state or kind of a person or item: "Active", "Invited", a person type.
- Dot pills are the hero eyebrow and section announcements: "Office of AI Transformation · Global University", "Live now", "Coming soon".
- Inline status is a short status inside a card or a detail line: "Verified employer", "Closes in 4 days". In a row of
body-lgfacts with 20px icons (a job's location, type, and pay) useoa-inline-status--lg, so the status is the same size as the facts beside it. - Code tags show a course or item code: "AI-100".
When not to use
| Need | Use instead |
|---|---|
| A main or secondary action | Button |
| Choosing one of two to four modes | Segmented button |
| An answer in a form, submitted later | Choice cards, radios, or checkboxes |
| A count on a control | Badge |
| A real-time state that pulses while it lasts ("Live", "Online") | Status indicator |
| Navigation between pages or panels | Links, Tabs |
| Text longer than three words that may wrap | A notice (Banner) or plain text; chips never wrap |
Anatomy
Interactive chip:
- Container. A pill (
--radius-chip) with a 1px--color-outline-varianthairline; the label identifies it (D-ARC-13). - State layer. A
::beforeof the label color over the whole border box (inset: -1px, so no lighter rim shows inside the hairline), 8% and 12%. - Leading icon (18px,
primary-ink), or check (.oa-chip__check) in its place while selected. - Label in
label-md, never wrapping. - Trailing close (18px), input chips only.
- Hit-area extender (
::after, 9px above and below), sm only. - Native radio (
.oa-chip__input), single-choice filter chips only: laid invisibly over the whole chip.
Status chip: a tone-filled pill with no border, an optional filled 18px icon, and words. Dot pill: an outlined opaque pill, a 10px decorative dot, words. Inline status: a filled 16px icon and words in a status ink. Code tag: a 24px tag with 8px corners and a mono code.
Variants
| Kind | Class | Element | Key tokens |
|---|---|---|---|
| Filter (default) | oa-chip |
<button type="button"> with [aria-pressed] in a named group; one at a time: <label class="oa-chip"> around <input class="oa-chip__input" type="radio"> |
off: --color-outline-variant hairline, --color-on-surface-variant label, --color-primary-ink icon; on: --color-primary-container, --color-on-primary-container, check |
| Input | oa-chip oa-chip--input |
<button>, or <a href> in a filter interface that works through the URL |
--color-on-surface label, --color-on-surface-variant close |
| Suggestion | oa-chip oa-chip--suggestion |
<a href> or <button>; never an arrow |
--color-on-surface label; an optional --color-primary-ink icon |
| Assist | oa-chip oa-chip--assist |
<button type="button">; its label is the live region |
--color-on-surface label, --color-primary-ink icon |
| Status | oa-status-chip oa-status-chip--<tone> |
<span> |
the tone's container and on-color |
| Dot pill | oa-dot-pill oa-dot-pill--<meaning> |
<span> or <p>; the dot is <span … aria-hidden="true"> |
--color-outline-variant edge, --color-surface-container-lowest fill, --color-on-surface-variant words |
| Inline status | oa-inline-status oa-inline-status--<tone> |
<span> |
--color-success, --color-warning, --color-error, or --color-info |
| Code tag | oa-code-tag, oa-code-tag oa-code-tag--neutral |
<span dir="ltr" translate="no"> |
--color-primary-container with its on-color, or --color-surface-container-high with --color-on-surface; --font-mono |
Status tones (D-CAI-18, D-COL-07 to D-COL-10):
| Tone | Class | Container | Content | Example |
|---|---|---|---|---|
| neutral | oa-status-chip--neutral |
--color-surface-container-high |
--color-on-surface |
"Sample", "Expired" |
| primary | oa-status-chip--primary |
--color-primary-container |
--color-on-primary-container |
"Event organizer" (Global Games) |
| secondary | oa-status-chip--secondary |
--color-secondary-container |
--color-on-secondary-container |
"Admin console" |
| success | oa-status-chip--success |
--color-success-container |
--color-on-success-container |
"Active" |
| warning | oa-status-chip--warning |
--color-warning-container |
--color-on-warning-container |
"Invited", "Coming soon" |
| error | oa-status-chip--error |
--color-error-container |
--color-on-error-container |
"Suspended" |
| info | oa-status-chip--info |
--color-info-container |
--color-on-info-container |
"Demo" |
Peach and burgundy never carry status on their own; status is always an icon and words (canonical §2.3).
Person types. Global ID binds the categorical hues to person types; any product that shows a person type uses them, always with the type's label and icon (D-COL-18).
| Person type | Class | Container | Icon | English | Arabic | French |
|---|---|---|---|---|---|---|
| Student | oa-status-chip--cat-orange |
--color-cat-orange-container |
school |
Student | طالب | Étudiant |
| Faculty | oa-status-chip--cat-blue |
--color-cat-blue-container |
menu_book |
Faculty | عضو هيئة التدريس | Enseignant |
| Staff | oa-status-chip--cat-green |
--color-cat-green-container |
work |
Staff | موظف | Personnel |
| Administrator | oa-status-chip--cat-plum |
--color-cat-plum-container |
admin_panel_settings |
Administrator | إداري | Administrateur |
| Security | oa-status-chip--cat-teal |
--color-cat-teal-container |
shield_person |
Security | أمن | Sécurité |
| Guest | oa-status-chip--cat-indigo |
--color-cat-indigo-container |
confirmation_number |
Guest | ضيف | Invité |
| Alumni | oa-status-chip--cat-burgundy |
--color-cat-burgundy-container |
workspace_premium |
Alumni | خريج | Diplômé |
| Contractor | oa-status-chip--cat-slate |
--color-cat-slate-container |
construction |
Contractor | متعاقد | Prestataire |
Each container takes its --color-on-cat-<hue>-container ink.
Global ID person statuses (canonical §10.9):
| Status | Tone | Icon | English | Arabic | French |
|---|---|---|---|---|---|
| active | success | check_circle |
Active | نشط | Actif |
| invited | warning | mail |
Invited | مدعو | Invité |
| pending activation | warning | schedule |
Pending activation | بانتظار التفعيل | Activation en attente |
| suspended | error | block |
Suspended | موقوف | Suspendu |
| expired | neutral | event_busy |
Expired | منتهٍ | Expiré |
| coming soon (features) | warning | schedule |
Coming soon | قريبًا | Bientôt |
Dot pill meanings: oa-dot-pill--brand (a --color-primary dot: the hero eyebrow), --live (--color-success: "Live now"), --soon (--color-warning: "Coming soon", "Public tests are coming soon"), --archived (--color-on-surface-variant: "Archived").
Sizes
| Kind | Size | Height | Padding | Type style | Icon | Hit area |
|---|---|---|---|---|---|---|
| Interactive | md (default) | 48px, --size-button-md (h-12) |
16px inline (px-4) |
label-md (14/20 600) |
18px, --size-icon-sm, 6px gap (gap-1.5) |
48px |
| Interactive | sm, oa-chip--sm |
32px, --size-chip-sm (h-8) |
16px inline | label-md |
18px | 48px through the ::after, 9px above and below |
| Interactive | sm from md, oa-chip--sm-from-md |
48px below 768px, 32px from 768px (h-12 md:h-8): console filters, which are compact only from md (canonical §4.11) |
16px inline | label-md |
18px | 48px at every width (from 768px through the ::after) |
| Status | md (default) | at least 32px, --size-chip-sm (min-h-8): scaled text grows the chip |
12px inline (px-3) |
label-md |
18px filled, 6px gap | none: not interactive |
| Status | sm, oa-status-chip--sm |
24px (h-6) |
12px inline | label-sm (12/16 500) |
none | none |
| Dot pill | one size | at least 34px | 8px at the start, 16px at the end, 6px block | body-md at weight 500 |
a 10px dot, 8px gap | none |
| Inline status | default | the line | none | body-md at weight 500 |
16px filled, --size-icon-xs, 6px gap |
none |
| Inline status | lg, oa-inline-status--lg |
the line | none | body-lg at weight 500 |
20px filled, --size-icon-md, 8px gap |
none |
| Code tag | one size | 24px (h-6) |
8px inline (px-2) |
code-xs in --font-mono |
none | none |
Chips in a group sit 8px apart (gap-2); rows of sm chips keep 16px between them (oa-chip-group--sm, gap-y-4) so their hit areas never overlap (D-CAI-17, D-ARC-04, D-ARC-05).
Tokens
| Part | Property | Token (Tailwind) |
|---|---|---|
| Interactive chip | height | --size-button-md, --size-chip-sm (h-12, h-8) |
| Interactive chip | corner | --radius-chip (rounded-chip) |
| Interactive chip | hairline | 1px --color-outline-variant (border-outline-variant) |
| Interactive chip | label | --text-label-md (text-label-md); --color-on-surface-variant (filter), --color-on-surface (input, suggestion, assist) |
| Interactive chip | icon | --size-icon-sm, --color-primary-ink |
| Selected | fill and content | --color-primary-container, --color-on-primary-container |
| State layer | opacity, fade | --opacity-state-hover, --opacity-state-pressed; --duration-short-3, --ease-standard |
| Disabled | hairline, content | --color-on-surface at 12% and 38% |
| Group | gap | --space-2; sm rows --space-4 |
| Status chip | height, padding | --size-chip-sm, --space-3; sm 24px |
| Status chip | colors | the tone's container and on-color; --color-cat-<hue>-container and --color-on-cat-<hue>-container |
| Dot pill | box | --radius-full, 1px --color-outline-variant, --color-surface-container-lowest, --space-1-5, --space-2, --space-4 |
| Dot pill | words | --text-body-md, --font-weight-medium, --color-on-surface-variant |
| Inline status | icon, words | --size-icon-xs; --text-body-md, --font-weight-medium; the status ink |
| Code tag | box and type | --radius-8px (rounded-8px), --space-2, --font-mono, --text-code-xs |
| Assist confirmation | dwell | --duration-dwell-confirm (2,400ms) |
| Focus | ring | --size-focus-ring solid --color-focus-ring, --size-focus-offset |
States
| State | What changes |
|---|---|
| Enabled | The hairline and the kind's label color. |
| Hover | Pointer devices only: the layer at --opacity-state-hover. |
| Focus-visible | The base ring, a pill 2px outside the chip. A single-choice chip draws it when its radio has keyboard focus (:has(> input:focus-visible)). |
| Pressed | The layer at --opacity-state-pressed, at once. |
| Selected (filter) | [aria-pressed="true"] or a checked radio: primary-container, a transparent edge, on-primary-container, and the check (FILL 1) in place of the icon (D-CAI-14). |
| Disabled | The hairline at 12%, content at 38%, no layer. Rare; prefer hiding a filter that cannot apply. |
| Confirmed (assist) | The label and icon change ("Address copied", check) for --duration-dwell-confirm, then return. |
| Status chips, dot pills, inline status, code tags | No states: they are not interactive. |
Behavior
- Filter chips, several at once. Each press toggles
[aria-pressed]and applies at once: the results update and the URL keeps the filter. Write both the icon and the check; the attribute decides which shows. An "All" chip is on while no other is, and pressing it clears the others (Global ID's directory) (D-CAI-18). - Filter chips, one at a time. Native radios in a
<fieldset>with a<legend>: arrow keys move and select, and the choice applies at once. The radio lies invisibly over the chip, so the chip is the radio's own target. - Input chips. Pressing the chip removes its value. Focus then moves to the next chip, or to "Clear filters" (a text link), or to the group's heading. Announce the count in hidden text ("2 filters on") (canonical §10.9).
- Suggestion chips run their query. They carry no arrow, even when they are links.
- Assist chips run their helper. On success the label and icon change for
--duration-dwell-confirm(the script reads the token), announced by the label, which is[aria-live="polite"]and present from page load. - Groups wrap onto more rows; they never scroll sideways and never truncate a chip.
- One chip may truncate: the context chip of the top app bar ("Admin console"), a secondary status chip that shrinks and truncates before anything else in the bar (canonical §10.15). Every other chip keeps its whole label (canonical §10.9).
- Status chips, dot pills, inline status, and code tags never act and stay out of the tab order. Dots never pulse: a real-time state uses the status indicator (C-11, canonical §10.23).
- Motion: only the layer and the colors change (
--duration-short-3,--ease-standard).
Accessibility
- Elements. Filter chips are toggle buttons in a named group: a
<fieldset>with a<legend>(visually hidden is fine), orrole="group"witharia-label="…". Single choice uses native radios (D-CAI-18). - Names. An input chip's name says what pressing does and contains its words:
aria-label="Remove filter: Full-time"(WCAG 2.5.3). Icons are<span … aria-hidden="true" translate="no">. - Targets. md chips are 48px; sm chips extend to 48px with 16px between rows (D-ARC-05).
- Contrast. The chip label
on-surface-variantis 7.2:1 or more (light) and 5.4:1 or more (dark) on every surface;on-primary-containeronprimary-containeris 13.22:1 and 9.06:1; every status and person-type ink on its container is 11.5:1 or more (light) and 7.2:1 or more (dark). The hairline is decorative: the label identifies the chip (V-2, D-ARC-13). - Not by color alone. Selected chips show a check; every status shows an icon and words; dots are decorative and hidden from screen readers.
- Codes. Code tags are left to right and never translated.
- Forced colors. Interactive chips keep their 1px edge; selected chips keep the check; disabled chips turn
GrayText. - Reduced motion. Instant.
RTL and languages
- Chips follow the direction;
close,check, and the status glyphs never mirror. Code tags staydir="ltr"inside Arabic. - Arabic from the products: filters "الكل", "الطلاب", "الضيوف"; statuses "نشط", "مدعو"; "متاح الآن" (Live now); "قريبًا" (Coming soon); suggestions "وظائف في لبنان", "عن بُعد".
- French from Global ID: "Tous", "Étudiants", "Actif", "Bientôt". Labels never wrap or truncate: keep them to one to three words in every language, and check them at 360px (D-TYP-15).
Content
- One to three words, sentence case, no full stop. Filters and statuses are nouns or adjectives ("Students", "Active"); assist chips start with a verb ("Copy address"); suggestions are the query itself ("Jobs in Lebanon").
- Status chips name a state or a kind, never a sentence.
- Dot pills may be a short phrase: "Office of AI Transformation · Global University", "Public tests are coming soon".
- "Coming soon" only on features that are not built; a built feature never stays "Coming soon" (canonical §12.5).
Do and don't
| Do | Don't |
|---|---|
| A check and the peach fill on a selected filter chip. | An inverted dark chip, or color alone. |
| "Remove filter: Full-time" as the input chip's name. | A tiny separate close button inside the chip. |
| "Jobs in Lebanon" as a link chip. | A north-east arrow on an internal suggestion. |
"Active" with check_circle on mint. |
A green dot alone for a status. |
| One opaque dot pill above a hero title. | A glass pill with a pinging dot. |
rounded-chip on every chip. |
rounded-full on chips: the client's answer must change one token. |
Code
HTML (reference CSS)
Filter chips, from reference/snippets/actions.html:
<fieldset class="oa-chip-group">
<legend class="oa-visually-hidden">Filter by person type</legend>
<button type="button" class="oa-chip" aria-pressed="true"><span class="oa-icon oa-chip__icon" aria-hidden="true" translate="no">group</span><span class="oa-icon oa-chip__icon oa-chip__check" aria-hidden="true" translate="no">check</span>All</button>
<button type="button" class="oa-chip" aria-pressed="false"><span class="oa-icon oa-chip__icon" aria-hidden="true" translate="no">school</span><span class="oa-icon oa-chip__icon oa-chip__check" aria-hidden="true" translate="no">check</span>Students</button>
</fieldset>
<fieldset class="oa-chip-group">
<legend class="oa-visually-hidden">Status</legend>
<label class="oa-chip"><input class="oa-chip__input" type="radio" name="ks-person-status" value="" checked><span class="oa-icon oa-chip__icon oa-chip__check" aria-hidden="true" translate="no">check</span>Any status</label>
<label class="oa-chip"><input class="oa-chip__input" type="radio" name="ks-person-status" value="active"><span class="oa-icon oa-chip__icon oa-chip__check" aria-hidden="true" translate="no">check</span>Active</label>
</fieldset>Small filter chips add oa-chip--sm to each chip and oa-chip-group--sm to the group. Console filters add oa-chip--sm-from-md instead: the chips stay 48px on phones, where consoles are comfortable, and turn 32px from 768px (canonical §4.11).
Input, suggestion, and assist chips:
<div class="oa-chip-group">
<p class="oa-visually-hidden">2 filters on</p>
<a class="oa-chip oa-chip--input" href="#jobs" aria-label="Remove filter: Full-time">Full-time<span class="oa-icon oa-chip__icon" aria-hidden="true" translate="no">close</span></a>
<a class="oa-chip oa-chip--input" href="#jobs" aria-label="Remove filter: Remote">Remote<span class="oa-icon oa-chip__icon" aria-hidden="true" translate="no">close</span></a>
<a class="oa-link oa-link--standalone" href="#jobs"><span class="oa-link__label">Clear filters</span></a>
</div>
<nav aria-label="Popular searches">
<ul class="oa-chip-group">
<li><a class="oa-chip oa-chip--suggestion" href="#jobs-uae">Jobs in the UAE</a></li>
<li><a class="oa-chip oa-chip--suggestion" href="#jobs-lebanon">Jobs in Lebanon</a></li>
</ul>
</nav>
<button type="button" class="oa-chip oa-chip--assist"><span class="oa-icon oa-chip__icon" aria-hidden="true" translate="no">content_copy</span><span class="oa-chip__label" aria-live="polite">Copy address</span></button>Status chips, dot pills, inline status, and code tags:
<span class="oa-status-chip oa-status-chip--success"><span class="oa-icon oa-status-chip__icon" aria-hidden="true" translate="no">check_circle</span>Active</span>
<span class="oa-status-chip oa-status-chip--warning"><span class="oa-icon oa-status-chip__icon" aria-hidden="true" translate="no">mail</span>Invited</span>
<span class="oa-status-chip oa-status-chip--cat-orange"><span class="oa-icon oa-status-chip__icon" aria-hidden="true" translate="no">school</span>Student</span>
<span class="oa-status-chip oa-status-chip--neutral oa-status-chip--sm">Sample IDs</span>
<span class="oa-dot-pill oa-dot-pill--brand"><span class="oa-dot-pill__dot" aria-hidden="true"></span>Office of AI Transformation · Global University</span>
<span class="oa-dot-pill oa-dot-pill--live"><span class="oa-dot-pill__dot" aria-hidden="true"></span>Live now</span>
<span class="oa-inline-status oa-inline-status--success"><span class="oa-icon oa-inline-status__icon" aria-hidden="true" translate="no">verified</span>Verified employer</span>
<span class="oa-inline-status oa-inline-status--warning"><span class="oa-icon oa-inline-status__icon" aria-hidden="true" translate="no">schedule</span>Closes in 4 days</span>
<span class="oa-code-tag" dir="ltr" translate="no">AI-100</span>
<span class="oa-code-tag oa-code-tag--neutral" dir="ltr" translate="no">AI-201</span>
<!-- In a row of body-lg facts: the large inline status -->
<span class="oa-inline-status oa-inline-status--warning oa-inline-status--lg"><span class="oa-icon oa-inline-status__icon" aria-hidden="true" translate="no">schedule</span>Closes in 4 days</span>Arabic:
<div class="ks-grid" dir="rtl" lang="ar">
<fieldset class="oa-chip-group">
<legend class="oa-visually-hidden">التصفية حسب نوع الشخص</legend>
<button type="button" class="oa-chip" aria-pressed="true"><span class="oa-icon oa-chip__icon" aria-hidden="true" translate="no">group</span><span class="oa-icon oa-chip__icon oa-chip__check" aria-hidden="true" translate="no">check</span>الكل</button>
<button type="button" class="oa-chip" aria-pressed="false"><span class="oa-icon oa-chip__icon" aria-hidden="true" translate="no">school</span><span class="oa-icon oa-chip__icon oa-chip__check" aria-hidden="true" translate="no">check</span>الطلاب</button>
<button type="button" class="oa-chip" aria-pressed="false"><span class="oa-icon oa-chip__icon" aria-hidden="true" translate="no">confirmation_number</span><span class="oa-icon oa-chip__icon oa-chip__check" aria-hidden="true" translate="no">check</span>الضيوف</button>
</fieldset>
<nav aria-label="عمليات بحث شائعة">
<ul class="oa-chip-group">
<li><a class="oa-chip oa-chip--suggestion" href="#jobs-lebanon">وظائف في لبنان</a></li>
<li><a class="oa-chip oa-chip--suggestion" href="#remote">عن بُعد</a></li>
</ul>
</nav>
<div class="oa-chip-group">
<span class="oa-status-chip oa-status-chip--success"><span class="oa-icon oa-status-chip__icon" aria-hidden="true" translate="no">check_circle</span>نشط</span>
<span class="oa-status-chip oa-status-chip--warning"><span class="oa-icon oa-status-chip__icon" aria-hidden="true" translate="no">mail</span>مدعو</span>
<span class="oa-dot-pill oa-dot-pill--live"><span class="oa-dot-pill__dot" aria-hidden="true"></span>متاح الآن</span>
<span class="oa-code-tag" dir="ltr" translate="no">AI-100</span>
</div>
</div>Tailwind CSS v4
<!-- Filter chip, md; sm adds the next line's classes -->
<button type="button" aria-pressed="false" class="relative isolate inline-flex h-12 shrink-0 items-center justify-center gap-1.5 rounded-chip border border-outline-variant px-4 text-label-md text-on-surface-variant whitespace-nowrap cursor-pointer transition-[background-color,border-color,color] duration-short-3 ease-standard before:pointer-events-none before:absolute before:-inset-px before:-z-1 before:rounded-[inherit] before:bg-current before:opacity-0 before:transition-opacity before:duration-short-3 before:ease-standard before:content-[''] hover:before:opacity-(--opacity-state-hover) active:before:opacity-(--opacity-state-pressed) active:before:duration-0 aria-pressed:border-transparent aria-pressed:bg-primary-container aria-pressed:text-on-primary-container disabled:cursor-default disabled:border-on-surface/12 disabled:text-on-surface/38 disabled:before:opacity-0"></button>
<button class="h-8 after:absolute after:inset-x-0 after:-inset-y-[9px] after:content-['']"></button>
<!-- Inside a filter chip: the leading icon (primary-ink) hides and the check shows while it is on -->
<span aria-hidden="true" class="text-primary-ink in-aria-pressed:hidden in-[:has(>input:checked)]:hidden">school</span>
<span aria-hidden="true" class="hidden in-aria-pressed:inline-block in-[:has(>input:checked)]:inline-block">check</span>
<!-- Single choice: a label around a radio laid invisibly over the chip -->
<label class="has-[>input:checked]:border-transparent has-[>input:checked]:bg-primary-container has-[>input:checked]:text-on-primary-container has-[>input:focus-visible]:outline-3 has-[>input:focus-visible]:outline-focus-ring has-[>input:focus-visible]:outline-offset-2"></label>
<input type="radio" class="absolute inset-0 m-0 size-full cursor-[inherit] rounded-[inherit] opacity-0">
<!-- Input, suggestion, and assist chips: the on-surface label; the input chip's close in on-surface-variant -->
<a class="text-on-surface"></a>
<!-- Group -->
<div class="flex flex-wrap items-center gap-2"></div> <!-- md chips -->
<div class="flex flex-wrap items-center gap-2 gap-y-4"></div> <!-- sm chips -->
<!-- Status chip, md and sm -->
<span class="inline-flex h-8 shrink-0 items-center gap-1.5 rounded-chip px-3 text-label-md whitespace-nowrap bg-success-container text-on-success-container"></span>
<span class="inline-flex h-6 shrink-0 items-center rounded-chip px-3 text-label-sm whitespace-nowrap bg-surface-container-high text-on-surface"></span>
<span class="bg-cat-orange-container text-on-cat-orange-container"></span>
<!-- Dot pill and its dot -->
<span class="inline-flex min-h-[34px] items-center gap-2 rounded-full border border-outline-variant bg-surface-container-lowest ps-2 pe-4 py-1.5 text-body-md font-medium text-on-surface-variant"></span>
<span aria-hidden="true" class="size-2.5 shrink-0 rounded-full bg-primary"></span>
<!-- Inline status and code tag -->
<span class="inline-flex items-center gap-1.5 text-body-md font-medium text-success"></span>
<span dir="ltr" translate="no" class="inline-flex h-6 items-center rounded-8px bg-primary-container px-2 font-mono text-code-xs text-on-primary-container">AI-100</span>Chip icons are the family Icon at text-(length:--size-icon-sm) (inline status text-(length:--size-icon-xs)), filled on status chips and inline status. shadcn/ui: Badge becomes the status chip, rounded-chip h-8 px-3 text-label-md plus a tone (canonical §2.12, D-ARC-20).
React
| Component | Prop | Type | Default | Description |
|---|---|---|---|---|
| FilterChip | selected | boolean | required | [aria-pressed]. |
| FilterChip | onSelectedChange | (selected: boolean) => void |
required | Applies at once. |
| FilterChip | icon | Material Symbols name | none | Shown while off; the check replaces it while on. |
| FilterChip | size | 'md' | 'sm' |
'md' |
sm in dense admin rows. |
| ChipGroup | legend | string | required | Names the group (visually hidden). |
| InputChip | label | string | required | The applied value. |
| InputChip | removeLabel | string | required | "Remove filter: {label}", the name. |
| InputChip | href or onRemove | string or () => void |
required | Removes the value. |
| SuggestionChip | href or onClick | string or handler | required | The ready-made query. |
| AssistChip | icon, label | name, string | required | The helper action. |
| AssistChip | doneIcon, doneLabel | name, string | 'check', required |
Shown for --duration-dwell-confirm. |
| StatusChip | tone | 'neutral' | 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info' or a person type |
'neutral' |
The fill and ink; a person type picks its cat-* hue and icon. |
| StatusChip | icon | Material Symbols name | none | Filled, md only. |
| StatusChip | size | 'md' | 'sm' |
'md' |
sm has no icon. |
| DotPill | meaning | 'brand' | 'live' | 'soon' | 'archived' |
'brand' |
The dot's color. |
| InlineStatus | tone, icon | tone, name | required | The status ink and its filled icon. |
| CodeTag | neutral | boolean | false | surface-container-high instead of primary-container. |
<ChipGroup legend={t('admin.people.filters.types')}>
<FilterChip icon="school" selected={types.includes('student')} onSelectedChange={() => toggle('student')}>
{t('admin.people.types.student')}
</FilterChip>
</ChipGroup>
<StatusChip tone="success" icon="check_circle">{t('admin.people.status.active')}</StatusChip>
<StatusChip tone="student">{t('personType.student')}</StatusChip>