A small element for categorising or filtering content — often dismissible or
clickable. Three independent capabilities:
selectable (a toggle chip),
removable (a trailing ×), or a plain static label.
selectable makes a toggle chip — click or
Enter/Space flips selected and
emits change.
Add a leading-icon or an
avatar (the avatar wins if both are set).
removable adds a × that emits
remove (Delete/Backspace on a
focused tag also removes it). Handle remove to drop the
tag — here the chips remove themselves.
category labels, filter chips, and removable selections.
Add a leading-icon or
avatar before the label. For a status label, use a
Badge.
selectable tags for filters and removable for chosen values.remove event to actually drop the tag from your data.role="button" with aria-pressed and a tab stop; Enter/Space toggles it.<button> labelled by remove-label; Delete/Backspace on a focused tag also removes it.aria-disabled and drops the tab stop.avatar-alt so the image has a text alternative.