Skip to content
Hazine

Badges, tags and chips

0 of 5 shipped. Nothing has shipped here yet. The list below is what this family will hold, and how each structure differs.

Planned 5

  • Count badge

    A number, not a label: it owns capping, zero handling and anchoring, and supplies screen-reader text such as '12 unread notifications' to the control it decorates.

  • Removable chip

    Carries a destructive affordance: the remove button is named 'Remove Berlin', Backspace or Delete on the focused chip removes it, and focus moves to the next chip or back to the owning control.

  • Filter chip

    The chip is a toggle button, not a label: state is exposed with aria-pressed, shown with an icon as well as fill, and the group supports single or multiple selection.

  • Key and value tag

    A pair rather than a single label: the segments are divided by a hairline, the key never truncates while the value does and exposes its full text, and either the whole tag or only the value can link to a filtered view.

  • Overflow tag list

    Width-aware collection: a ResizeObserver decides the cut-off, the full list stays in the DOM for assistive tech, and the overflow button states how many tags are hidden.