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.
- In progress
- Storybook (opens in a new tab)
- Figma library (opens in a new tab)
npm install @sbks/ds-elements
Dimensions and spacing
Section titled “Dimensions and spacing”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.
| Part | Property | Token |
|---|---|---|
| Tag | Maximum width | 180px |
| Leading stripe | Width | 3px |
Colors
Section titled “Colors”The cross of the remove button turns to the danger color on hover.
| Part | Property | Token |
|---|---|---|
| Tag | Background | --color-layer-level-1 |
| Tag | Border | --color-border-primary |
| Leading stripe | Color | --color-layer-level-3 |
| Additional content | Background | --color-layer-level-3 |
| Remove button | Background | --color-layer-level-3 |
| Remove button | Icon | --color-on-layer-primary |
| Remove button | Icon on hover | --color-on-layer-danger |