Skip to main content

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.

Two tags being used to surface restaurant offers on an image of a burger.

Dos and Don'ts

Do
  • Use when content is mapped to multiple categories, and the user needs a way to differentiate between them.
  • Use to call attention to details in a way that makes it easy to scan.
Don't
  • If only an icon is required to convey the message, use the tag: icon only component instead.

Anatomy

Anatomy of a tag.
  1. Container: Holds related UI elements.
  2. Leading icon background (Optional): Background container for leading icon.
  3. Leading icon (Optional): Visually supports the label.
  4. Label: Provides informative infromation to the user.

Modifiers

Icon

When incorporating an icon into a tag, it is essential to ensure that the icon clearly supports the label.

Leading

Leading icon provides context and visually supports the label and it is available for both variants.

A large and a small icon both using leading icons. These icons are placed before the icon text.

Emphasis

Depending on the level of visual prominence you want to give to the tag, you can choose between strong or subtle emphasis.

Strong

A tag component with label text. The component has a dark background color to indicate string emphasis.

Subtle

A tag component with label text. The component has a subtle background color (light grey) to indicate subtle emphasis.

Colours

Select from a range of colour options across the two levels of emphasis.

Neutral

Tag demonstrating the neutral colour.

Neutral alternative

Tag demonstrating the neutral alternative colour.

Ghost

Tag demonstrating the ghost colour.

Outline

Tag demonstrating the outline colour.

Translucent

Tag demonstrating the translucent colour.

Information

Tag demonstrating the information colour.

Success

Tag demonstrating the success colour.

Error

Tag demonstrating the error colour.

Warning

Tag demonstrating the warning colour.

02 Orange subtle

Tag demonstrating the orange subtle colour.

03 Cupcake

Tag demonstrating the cupcake colour.

04 Berry

Tag demonstrating the berry colour.

05 Turmeric

Tag demonstrating the turmeric colour.

06 Aubergine

Tag demonstrating the aubergine colour.

08 Latte

Tag demonstrating the latte colour.

Sizes

Height

Two size options are available to suit the scale required.

SizeHeightNotes
aLarge24px-
aSmall18px-

Width

Container width is dynamic to the content's width and retains 4px left and right padding.

A tag component with a long text

Content

Overrides

A tag component with some label text. This is fully customisable.
  1. Label: The Tag’s label can be bold for increased emphasis.

Meaning and purpose

Tags can be used to indicate status or used to convey specific meanings within JET which are displayed below.

A collection of different tag variants
  1. Info: Drawing attention to contextual information for the user
  2. Warning: Drawing attention to non-critical information for the user
  3. Success: Drawing attention to positive information for the user
  4. Error: Drawing attention to critical information for the user. Please review if an icon only tag is appropriate it might be better to use a dialogue, notification, toast or banner component
  5. Offers: Drawing attention to contextual information about the details of a deal or promotion to the user

Examples

LTR examples

Here are some examples of tags in left-to-right context:

An example of the tag inside a restaurant listing that displays text from left to right. The tags start on the left of the image.

RTL examples

Here are some examples of tags in right-to-left context:

An example of the tag inside a restaurant listing that displays text from right to left. The tags start on the right of the image.

Resources

Stable
Stable
Stable
Stable
Beta
Vue [Fozzie]
N/A
Stable
iOS JustUI [UI Kit]
Stable
iOS PIE [SwiftUI]
Planned
Android PIE [Compose & Views]
Stable
Back to top