Skip to content

Chip

Compact labels for tags, filters, and selections. Removable ones leave with an event, not silence.

Variants

AlphaAccentSuccessWarningDangerInfo
<Chip>Alpha</Chip>
<Chip variant="accent">Accent</Chip>

Removable

BetaGamma
<Chip removable itemLabel="Beta">Beta</Chip>

Outline style

AlphaAccentSuccessDanger
<Chip style="outline">Alpha</Chip>
<Chip variant="accent" style="outline">Accent</Chip>

Events

document.addEventListener("ink:chip:remove", (event) => {
  console.log("chip-removed " + event.detail.text);
});

Props

PropTypeDefaultDescription
variant / size6 variants / sm | mdneutral / mdLook and size.
stylesolid | outline | softsolidFill treatment (soft inherits the tint).
hrefstring-Renders a link chip.
removablebooleanfalseShows the × button.
itemLabelstring-Names the item in the remove button label.

Accessibility