Components / Base / Chip

B5 · Base

Chip

A static label, a count, and a chip that can be removed.

When to use

  • A short token sits inline with text.
  • A removable token represents a current filter.

When not to use

  • The chip is the main navigation. Use tabs.
  • The text is a sentence.

Usage

<span class="chip">In review</span>
<span class="chip" data-chip>DOC-1042 <button type="button" data-remove-chip>Remove</button></span>

Variants

The preview shows the form used in the gallery.

Props

NameTypeDefaultDescription
.chipclass—Pill radius, 1 px line, 12 px type.
data-remove-chipbuttonabsentHides that chip in the preview.

Keyboard

KeyAction
EnterOn Remove, hides the chip.

Accessibility

Motion

Pattern origin

Base control. .chip is in yravg-ui v1.0.

Related

Filter chipsPill buttonsRule card