Talisman LogoTalisman Logo Design System
Browse documentation
Components

Data list

Shows read-only label and value pairs, such as the data of a process in a review task, as an accessible description list.

Stableimport { DataList } from "@repo/ui/data-list";Source
Número do processo
0001234-56.2026.8.26.0100
Cliente
Banco Aurora S.A.
Vara
3ª Vara Cível de São Paulo
Revisor
Rafael Almeida
Prazo de entrega
12/12/2026
Valor da causa
R$ 48.250,00

When to use

  • For data the operator checks but does not edit: número do processo, cliente, prazo, valor da causa.
  • In side panels and detail headers, where one record is read from top to bottom.
  • For a few values that belong together. Use grid when there are many short values.

When not to use

  • Values the operator changes. Use form fields.
  • Many records with the same columns. Use Table.
  • One notice or message. Use Alert.
  • A list of items to open or act on. Use List.

Variants

layout sets how each pair is placed. The list owns the layout, so do not repeat it on every item.

Número do processo
0001234-56.2026.8.26.0100
Cliente
Banco Aurora S.A.
Vara
3ª Vara Cível de São Paulo
Revisor
Rafael Almeida
Prazo de entrega
12/12/2026
Valor da causa
R$ 48.250,00
Número do processo
0001234-56.2026.8.26.0100
Cliente
Banco Aurora S.A.
Vara
3ª Vara Cível de São Paulo
Revisor
Rafael Almeida
Prazo de entrega
12/12/2026
Valor da causa
R$ 48.250,00
Layout Use for
rows (default) Label on the left, value on the right, with a divider. Few items, side panels, reading top to bottom.
grid Label above the value, in columns that follow the container width. Many short values.

States

Empty and rich values

A value can hold any content, such as a Tag. For a missing value, write a short phrase and use text-secondary. Line breaks in text are kept.

Status
Em revisão
Vara
Não informado
Observação do revisor
Conferir a procuração antes do protocolo. Cliente pediu urgência.

In a side panel

The grid adapts to a narrow container, because the columns follow the container and not the window.

Dados do processo

Número do processo
0001234-56.2026.8.26.0100
Cliente
Banco Aurora S.A.
Vara
3ª Vara Cível de São Paulo
Revisor
Rafael Almeida

Content

  • Labels are short nouns in sentence case: “Número do processo”, “Prazo de entrega”.
  • Format dates, currency and empty values before passing them. The component does not translate or format.
  • Write “Não informado” for a missing value. Do not leave it blank.

Do and don’t

Prazo de entrega
12/12/2026
Valor da causa
R$ 48.250,00
DoFormat values for reading: a date as 12/12/2026 and an amount as R$ 48.250,00.
Prazo de entrega
2026-12-12T00:00:00.000Z
Valor da causa
48250
Don'tDon't show raw data such as ISO dates or numbers without currency.

Accessibility

  • Renders a native description list: dl, dt for each label and dd for each value. Screen readers announce each label with its value and the number of pairs.
  • Each pair is grouped in a div inside the dl, which is valid HTML for description lists.
  • The label uses text-secondary and the value uses text-primary, so the value has the higher contrast.
  • The component has no interaction. Do not put controls in a value that the keyboard cannot reach in order.

Code

import {
  DataList,
  DataListItem,
  DataListLabel,
  DataListValue,
} from "@repo/ui/data-list";

<DataList layout="rows">
  <DataListItem>
    <DataListLabel>Número do processo</DataListLabel>
    <DataListValue>0001234-56.2026.8.26.0100</DataListValue>
  </DataListItem>
  <DataListItem>
    <DataListLabel>Cliente</DataListLabel>
    <DataListValue>Banco Aurora S.A.</DataListValue>
  </DataListItem>
</DataList>;

Props

DataList
PropTypeDefaultDescription
layout"grid" | "rows"rowsRows place each label beside its value; grid stacks them in responsive columns

DataListItem, DataListLabel and DataListValue take only the props of their native element (div, dt, dd), including className and ref.

Known issues

No known issues. Checked the source for deprecated tokens, translucent fills, raw text tags, hardcoded copy and missing semantics: the component uses Typography styles, semantic tokens and native dl, dt and dd.

Edit this page on GitHub