Data Display

Tag Group

A tag group displays a collection of tags that can optionally be removed.

A tag group displays a collection of tags that can optionally be removed.

  • React
  • Vue
  • Angular

Removable#

Add onRemove to make tags removable. An X button will appear on each tag.

  • JavaScript
  • TypeScript
  • Python

Variants#

  • Default
  • Tags
  • Outline
  • Tags
  • Primary
  • Tags

Component props#

TagGroup#

NameTypeDescription
labelstringLabel text displayed above the group
onRemove(keys: Set<Key>) => voidCalled when tags are removed. Enables remove buttons.
disabledKeysIterable<Key>Keys of tags that cannot be removed

Tag#

NameTypeDescription
idstringUnique tag identifier (required)
variant"default" | "outline" | "primary"Visual style variant
isDisabledbooleanDisables the tag