Tag

A short label for a category, a status or a keyword, optionally closable and optionally something the reader can pick.

Basic

A plain Tag, then one with an icon, one with only an icon, a status dot, an avatar and a closable one.

Named colors

Set color to a status, a color name like magenta or fuchsia, in any variant.

Custom colors

Pass color any CSS color, like #f50, for a one-off tag derived from that color, with every variant.

Emphasis

Set emphasis="subtle" for a quieter tag with a neutral fill and no border, which keeps the colored text of its status.

Size

Set size="small" for a shorter tag with smaller text, for dense rows of metadata like versions or environments.

Shape

Set shape to "squircle" for smoothed corners or "round" for a pill, with any color, icon or status.

Squircle

shape="squircle" bends the corners into a superellipse in Chromium 139 and later, and shows plain corners elsewhere.

Status dot

Set status to show a status dot before the label, with a pulsing ring for processing, like Healthy or Deploying.

Icons

Pass icon a node to show a glyph before the label, in the tag's text color, like a spinner beside Deploying.

Icons with colors

An icon takes the tag's text color with any color and variant, and sits beside a close button.

Icon only

Pass icon and no children for a square tag, and set title so hovering the tag names it.

Avatar

Pass avatar an image URL to show a small picture at the start of the tag, like a face beside a person's name.

Avatar shapes

The avatar follows the tag's shape: a circle on a round tag and a rounded square on the others.

Closable

Set closable to add a close button in the tag's own color, and handle onClose to remove the tag from your list.

Close icon

Pass closeIcon a node to change the close glyph, or closable an object to give the button its own aria-label.

Checkable

Tag.CheckableTag toggles checked on click, for a single on and off choice like Follow and Following.

Checkable group

Pass options to Tag.CheckableTagGroup for a row of toggles and multiple to let several stay checked, here in the default shape and round.
Pass href to render the tag as a link that keeps the tag's color, shape and icon.

In context

The component inside real screens, with the components it usually sits beside.

Issue label manager

An issue's labels as closable tags, with a dashed button that opens an input for adding a new one.

API Reference

Tag
Tag's props. Rows marked antuikit in the Version column are added by the kit.
Tag.CheckableTag
Tag.CheckableTag's props.
Tag.CheckableTagGroup
Tag.CheckableTagGroup's props.