Tag
A tag is a small visual element used to represent and categorise information within a user interface.
Overview
The purpose of tags is to provide a quick and visually appealing way to highlight or identify specific items, topics or attributes. Tags enhance the user experience by simplifying content organisation and facilitating content discovery and filtering. Tags can be embedded in other components such as cards, data tables (among others) to help users understand and filter information more effectively.
Dos and Don’ts
Anatomy
- Icon (Optional): Visually supports the label.
- Label: Provides information to the user.
- Trailing icon (Optional): Indicates additional actions or further interactions.
Variations
Non-interactive
The non-interactive variation should be used by default, and should be used when the tag doesn’t require any interactivity.
Interactive
The interactive variation should be used for non-crucial interactions.
Modifiers
Icon
When incorporating an icon into a tag, it is essential to ensure that the icon clearly supports the label. Icons are only available in the large size of the tag.
Emphasis
Depending on the level of visual prominence you want to give to the tag, you can choose between strong or subtle emphasis.
Colours
Select from a range of colour options across the two levels of emphasis.
Sizes
Height
Two size options are available to suit the scale required.
Size | Height | Notes | |
---|---|---|---|
Large | 24px | - | |
Small | 16px | Icons are not available for the small size. |
Width
Container width is dynamic to the content’s width and retains 4px left and right padding.
Meaning and purpose
Tags can be used to indicate status or used to convey specific meanings within JET which are displayed below.
Interactive states
The interactive variation includes all interactive states, while the non-interactive variation only includes the default and disabled states.
Examples
LTR examples
Here are some examples of tags in left-to-right context:
RTL examples
Here are some examples of tags in right-to-left context:
Resources
Stable | |
Stable | |
Beta | |
Vue [Fozzie] | N/A |
Stable | |
iOS JustUI [UI Kit] | Stable |
iOS PIE [SwiftUI] | Planned |
Android PIE [Compose & Views] | Stable |