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 about the content or purpose of the tag.
- Container: Background container that organises the information.
Variations
Type
Tag can use colour for visual categorisation.
Modifiers
Emphasis
Tags are available in two types of emphasis. Not all colours available within the subtle emphasis are available within the strong emphasis, for example, brand, neutral - alternative, outline and ghost have only subtle variations.
Icon
Icons can be used to visually support the Tag’s label. Only available at the large size.
Sizes
States
Tag is available in 2 states. The disabled state has an opacity of 50%.
Content
Label guidance
Tag doesn’t have a maximum width or overflow. The container width is dynamic to the content’s width.
Visual representation
Tags and colours can be used to indicate status or used to convey specific meanings within JET which are displayed below.
Examples
Outlines the atomic level interactive elements for the component.
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 |