EXEPERTAI LAB

Research alpha

Time Machine
EXEPERTAI LAB
GALLERY / COLLECTION
← Browse Astryx gallery
MetadataList·component·@astryxdesign/core

Metadata List Item

A single labeled metadata value within an MetadataList.

Open in Playground @astryxdesign/core/MetadataList

Showcases and examples

2 documented examples

Metadata List Item

Metadata list items displaying labeled values in various formats including text, badges, and links.

Preview loads on approachPreview loads on approach
Exact source · metadata-list-item-showcase
// Copyright (c) Meta Platforms, Inc. and affiliates.

'use client';

import {MetadataList, MetadataListItem} from '@astryxdesign/core/MetadataList';
import {Badge} from '@astryxdesign/core/Badge';
import {Link} from '@astryxdesign/core/Link';

export default function MetadataListItemShowcase() {
  return (
    <MetadataList title="Project Details">
      <MetadataListItem label="Name">Design System v2</MetadataListItem>
      <MetadataListItem label="Status">
        <Badge label="Active" variant="green" />
      </MetadataListItem>
      <MetadataListItem label="Owner">
        <Link href="#">Alice Johnson</Link>
      </MetadataListItem>
      <MetadataListItem label="Created">January 15, 2025</MetadataListItem>
      <MetadataListItem label="Priority">
        <Badge label="High" variant="red" />
      </MetadataListItem>
      <MetadataListItem label="Repository">
        <Link href="#">github.com/org/design-system</Link>
      </MetadataListItem>
    </MetadataList>
  );
}

Usage

A single labeled metadata value within an MetadataList.

Typed props

PropType and behavior
childrenReactNode · required
Content value for this metadata item.
labelstring · required
Label text for this metadata item.
iconReactNode
Icon rendered before the label text.
Slot: Icon