Skip to content

Components

PropertyList: label left, value right

PropertyList shows a record's facts in a side panel or in a record page's side column: the label on the left in a column of one width, the value on the right, one fact a line. A long note takes a wide row across both columns, so the facts of every record line up the same way in every app.

By Bohuslav PoláčekChecked

A cutting die of Foldline and a task of Stonebridge's schedule, each under its panel header, rendered from the kit with the demo's facts. The label column has the same width in both, and the task's note takes a wide row.

What it is for, and what the preview shows

PropertyList is the block of facts in a record: who it is for, what kind it is, where it is, who made it and when. Each fact is a label and a value on one line; a long value, such as a note, takes a wide row under its label. It renders a real description list (<dl>, <dt>, <dd>), so a screen reader hears each label with its value. It goes under the header of a RecordPeek and into the side column of a record's full page.

The preview shows two side panels from the demo: die DIE-0412 of Foldline, a packaging printer, with its kind, code, size, place on the sheet, location and maker; and a task of Stonebridge's building schedule with its crew, the weather it needs, its start and a note. The values differ in kind, a code, a crew with its avatar, a sentence, and the labels still line up in one column.

The rules, and where each one lives

  • A side panel has one order. One header row, then the next step, then properties, actions and history: PeekHeader, NextStep, PropertyList, AuditTimeline (docs/principles.md, Side panels; the root AGENTS.md names the same parts).
  • Facts are not fields. "Nothing looks like a field that is not one" (docs/principles.md): a fact is plain text, and editing happens in a form or a dialog with Field (the manifest's not).
  • One label column. Labels sit in a column between 6 and 8rem wide in every app, in the muted grey, and each row is at least 28px tall, so the facts of every record start at the same place.
  • Figures by kind. Dates and amounts in a value get tabular figures, IDs never do (AGENTS.md, Look and feel).
  • People with their avatar. A person or a crew shows its Avatar beside the name, its hue taken from the name, never red, orange or yellow (AGENTS.md).
  • Muted text stays readable. The labels are 13px in text-fg-muted, the lightest grey the root AGENTS.md allows for text that size (decision 0015).

What AI coding tools write instead

The manifest's replaces: a hand-built two-column grid of labels and values, or a <dl> written by hand.

Each hand-built grid picks its own label width, so the facts of an order and of an invoice start at different places, and a long location or note either breaks the grid or gets cut off. Labels drift between bold and grey from panel to panel, values pick up their own colours, and some panels end up with read-only inputs that look as if they could be edited. PropertyList keeps one label column, one row height and one label style across every record, and its wide row gives long text the full width.

How to use it

PropertyList takes items and className. Each item is a Property, { label, value, wide? }:

  • label: a short noun ("Location", "Made by").
  • value: text or a small piece of UI, such as a date in tabular, a person with an Avatar, or a status with its glyph and word.
  • wide: puts a long value, a note or a description, on a full-width row under its label.

Build the list once in the record's view component, so the side panel and the full page show the same facts. For longer text that is the record's content rather than one of its facts, the manifest names DescriptionList as the part to use. The record side panel and the record pattern show where the list sits in a panel and on a record's page.

Its entry in the manifest

The component's rules as the kit's manifest states them, the same entry an AI coding tool reads.Read from the kit's component manifest when the site was built (126 components, packages/kit/src/components.json); the same entry answers an AI coding tool through the kit's MCP server.

Where it runs in the example apps

The example apps whose code renders PropertyList, and in which modules, read from the demo's source.Read from the demo's source when the site was built: 9 of 9 example apps render <PropertyList>, in the modules named here as each app's sidebar names them.

How the starter lists a request's facts

templates/starter/src/modules/requests/components/request-record.tsx
const properties = (
  <PropertyList
    items={[
      { label: "Supplier", value: request.supplier },
      { label: "Amount", value: <span className="tabular">{formatMoney(request.amount)} incl. VAT</span> },
      { label: "Needed by", value: <span className="tabular">{formatDate(request.neededBy)}</span> },
      {
        label: "Requested by",
        value: (
          <>
            <Avatar name={request.requesterName} size="xs" decorative />
            {request.requesterName}
          </>
        ),
      },
      ...(request.decidedByName
        ? [
            {
              label: request.status === "rejected" ? "Rejected by" : "Approved by",
              value: (
                <>
                  <Avatar name={request.decidedByName} size="xs" decorative />
                  {request.decidedByName}
                </>
              ),
            },
          ]
        : []),
      { label: "Last change", value: <span className="tabular">{formatDateTime(request.updatedAt)}</span> },
    ]}
  />
);
The starter's purchase request: the supplier, the amount and the date in tabular figures, the people with their avatars, and who decided only once someone has.

Questions

How is PropertyList different from a form?

It shows facts and does not edit them. Editing happens in a form or a dialog, where every input sits in a Field with its visible label.

What happens to a long value?

Mark it wide and it takes a full row under its label. A short value stays beside its label on one line.

Why do all the labels share one width?

So the facts of every record start at the same place. People compare records by scanning down one column, and a label column that changes width from panel to panel makes them search for the values.

Can a value hold a person or a status?

Yes. A value can be any small piece of UI: a name with its avatar, a status with its glyph and word, a date with tabular figures.

Two ways

Build it yourself, or have it built

  • Build it yourself

    Build your app on the framework

    Get the codebase these apps stand on and build yours with Claude Code, Cursor or Codex.

    One payment, lifetime updates

    Get the framework
  • Have it built

    Have us build your app

    Tell us how your team works. We plan the app with you and build it on the same framework at a fixed price.

    After launch, Care keeps it improving, from €99 a month.

    from €1,990

    Describe your app