Skip to content

Label tag

A label tag shows a label assigned to an item, such as a post or a conversation, and can let users remove it.

The tag grows with its label up to the maximum width. The leading stripe insets the label by its own width and is left out when the tag has additional content.

Values from @sbks/ds-elements@4.3.9
PartPropertyToken
TagMaximum width180px
Leading stripeWidth3px

The cross of the remove button turns to the danger color on hover.

Values from @sbks/ds-elements@4.3.9
PartPropertyToken
TagBackground--color-layer-level-1
TagBorder--color-border-primary
Leading stripeColor--color-layer-level-3
Additional contentBackground--color-layer-level-3
Remove buttonBackground--color-layer-level-3
Remove buttonIcon--color-on-layer-primary
Remove buttonIcon on hover--color-on-layer-danger