Officina UI
Components

MetadataList

Compact key/value metadata grid with optional icons and inline copy buttons.

MetadataList lays out an items array of metadata entries in a responsive grid (set columns to 1, 2, or 3). Each entry has a muted label and value, plus an optional leading icon and a copyValue that adds an inline copy-to-clipboard button. Use it for resource metadata — IDs, timestamps, contacts — where some values are worth copying.

Example

Preview
Workspace ID
ws_8f21
Created
May 11, 2026
Primary contact
ada@acme.test
import { MetadataList } from '@officina/ui';
import { KeyRound, Mail } from 'lucide-react';

<MetadataList
  columns={2}
  items={[
    { label: 'Workspace ID', value: 'ws_8f21', icon: <KeyRound />, copyValue: 'ws_8f21' },
    { label: 'Primary contact', value: 'ada@acme.test', icon: <Mail /> },
  ]}
/>;

API

PropTypeDefaultDescription
items*MetadataItem[]—Key/value entries to render.
columnsenum1Number of grid columns.

On this page