Skip to content

Properties

Tag properties

PropertyTypeDescription
textstring
React.ReactNode
(optional) The content of the tag can be a string or a React Element.
childrenstring
React.ReactNode
(optional) The content of the tag can be a string or a React Element.
iconstring
React.Node
(optional) To be included in the tag. Primary Icons can be set as a string (e.g. icon="chevron_right"), other icons should be set as React elements. Note, we recommend not to use icons with clickable tags.
hasLabelboolean(optional) If a label is given, typical inside a table or dl (definition list), then you can disable Tag.Group as a dependent of Tag. Use true to omit the Tag group required: warning.
variantdefault
clickable
addable
removable
(optional) Possible values are default, clickable, addable, or removable. Defaults to default.
omitOnKeyUpDeleteEventboolean(optional) Set to true to omit triggering an event when the user releases the Delete or Backspace keys. Defaults to false.
classNamestring(optional) Custom className for the component root.
skeletonboolean(optional) If set to true, an overlaying skeleton with animation will be shown.
Spacestring
object
(optional) Spacing properties like top or bottom are supported.

Tag.Group properties

PropertyTypeDescription
labelReact.ReactNode(required) The label description of the group of tags.
childrenReact.ReactNode(optional) Content of the component. Can be used instead of the data-property, by adding Tag elements as children <Tag {...props} />.
classNamestring(optional) Custom className for the component root.
skeletonboolean(optional) If set to true, an overlaying skeleton with animation will be shown.
Spacestring
object
(optional) Spacing properties like top or bottom are supported.

Tag translations

More info about translations can be found in the general localization and Eufemia Forms localization docs.

Keynb-NOen-GBsv-SE (beta)
Tag.removeIconTitleFjernRemoveTa bort
Tag.addIconTitleLegg tilAddLägg till