Skip to main content
Login

Sign in to access your account

Meta - National Design System

Meta is a line of short facts, each with an icon, such as a time, a place and a person

Overview

A meta line is a <span> with the nds-meta class. Each fact in it is a <span> with the nds-meta-item class, which holds an icon and a short text. The line holds only inline elements, so it can sit inside a link or a button, such as a drawer row or a link card.

Pick another component when:

  • each value needs a visible label, such as “Email” or “Mobile”: Definition List
  • the fact is a category or a status: Tags

Markup

Preview
10:00 – 11:15 AM Dr. Nora Al-Qahtani Building 3, Room 214
<span class="nds-meta"> <span class="nds-meta-item"> <i class="hgi hgi-stroke hgi-clock-01" aria-hidden="true"></i> 10:00 – 11:15 AM </span> <span class="nds-meta-item"> <i class="hgi hgi-stroke hgi-teacher" aria-hidden="true"></i> Dr. Nora Al-Qahtani </span> <span class="nds-meta-item"> <i class="hgi hgi-stroke hgi-location-01" aria-hidden="true"></i> Building 3, Room 214 </span> </span>

Built-in Features

  • Inline Markup

    The line and its facts are <span> elements, so the line is valid inside a link or a button.

  • Wrap to Fit

    When the facts do not fit on one line, they wrap. Each fact moves down as a whole. Only a fact longer than the whole line wraps inside, and its icon stays beside its first line of text.

  • Icon Size in Buttons

    Inside a button or a drawer row, the icon keeps the size of its line. The button's own icon size does not reach it.

  • Own Text Style

    The line sets its own size, weight and color, so it reads as secondary text inside a button, a card or a row.

Best Practices

  • Keep each fact short: a time, a place, a name or a reference number.
  • Use two to four facts in a line. Put longer details in a Definition List.
  • Pick an icon that names the fact, such as a clock for a time. A reader who sees only the icon must know what the text is.
  • Give each icon aria-hidden="true". The text names the fact for screen readers.
  • Use the same facts in the same order on every row of a list, so the reader can scan down a column.
  • Put the status of the whole item in a Tag. Use data-status on a fact only when that one fact needs attention, such as a late due date.
  • Use nds-sm in a table cell and nds-lg under a page title. Keep the default in list rows and cards.
  • Put a link inside a fact, such as an email address, only when the line is not inside a link or a button. A link inside a link is not valid HTML.
  • Write a time or a phone number inside <span dir="ltr"> on an Arabic page, so its digits keep their order.

API

Classes

Class Element Effect
nds-meta <span> The line: a row of facts that wraps
nds-meta-item <span> in the line One fact: an icon and its text, side by side
nds-md .nds-meta The same as no size class: 14px text and a 16px icon

Data Attributes

Attribute Element Effect
data-status .nds-meta-item success, info, warning, error or neutral gives the fact’s text and icon the matching color. critical gives the error color. A data-status on a parent, such as a drawer row, does not color the facts

CSS Custom Properties

Set these on the line, or on a parent to reach every line inside it.

Property Default Controls
--meta-gap var(--spacing-xs) var(--spacing-lg) Space between the rows, then between the facts in a row
--meta-color var(--text-secondary-paragraph) Text and icon color. A fact with data-status keeps its status color

Tokens

It reads these shared tokens. A change to one also changes other components: see Tokens.

Source: the var() reads in _sass/components/_meta.scss.

TokenPreviewValue
--text-default
Read by color

var(--colors-base-black)
Dark mode var(--colors-neutral-200)
--text-secondary-paragraph
Read by --meta-color

var(--colors-neutral-500)
Dark mode var(--colors-neutral-400)
--text-success
Read by color

var(--colors-green-700)
Dark mode var(--colors-green-400)
--text-info
Read by color

var(--colors-blue-700)
Dark mode var(--colors-blue-400)
--text-warning
Read by color

var(--colors-yellow-700)
Dark mode var(--colors-yellow-400)
--text-error
Read by color

var(--colors-red-700)
Dark mode var(--colors-red-400)
Last Modified Date: 05/11/2026 - 12:02 PM
Was this page useful?
60% of users said Yes from 2843 Feedbacks