Data Display
DataMatrix
Compare the same dimensions across ordered rows.
import { DataMatrix } from 'faifo-design'DataMatrix compares the same dimensions across ordered records or checkpoints. The matrix owns
table semantics, the sticky row identity and horizontal containment; the application owns cell
content and workflow actions.
#When to use
- Use it when rows and columns are both dimensions: periods by measure, variants by attribute.
#Examples
Each example is a specimen of the package catalogue, rendered on the server exactly as shown in its code.
#Data matrix
Ordered rows compare the same dimensions while workflow content stays application-owned.
Barrier recovery routine
Started 01 September 2026
| Checkpoint | FrontRequired | Left profile | Right profile |
|---|---|---|---|
D+1 · BaselineComplete 02/09/2026 | Photo 01 | Photo 02 | Photo 03 |
D+7 · AdaptationPlanned 08/09/2026 | Upload | Upload | Not required |
Show codeHide code
import { Badge, Button, DataMatrix } from 'faifo-design'
export const Example = () => (
<DataMatrix
label="Care checkpoints and evidence"
rowLabel="Checkpoint"
eyebrow="Outcome tracking"
title="Barrier recovery routine"
description="Started 01 September 2026"
summary={<Badge label="2 / 3 complete" tone="info" />}
columns={[
{ id: 'front', label: 'Front', description: 'Required' },
{ id: 'left', label: 'Left profile' },
{ id: 'right', label: 'Right profile' },
]}
rows={[
{
id: 'day-1',
label: 'D+1 · Baseline',
description: '02/09/2026',
status: <Badge label="Complete" tone="positive" />,
cells: { front: 'Photo 01', left: 'Photo 02', right: 'Photo 03' },
},
{
id: 'day-7',
label: 'D+7 · Adaptation',
description: '08/09/2026',
status: <Badge label="Planned" tone="warning" />,
actions: <Button label="Open checkpoint" size="compact" />,
cells: { front: 'Upload', left: 'Upload', right: 'Not required' },
},
]}
/>
)#API
Generated from the package source. A property without a description has none in the source yet.
#DataMatrixComponent
Compare the same dimensions across ordered records or checkpoints. Applications own cell content and workflow actions; the matrix owns table semantics, sticky row identity, horizontal containment and responsive chrome.
| Property | Description | Type | Default |
|---|---|---|---|
labelrequired | – | string | – |
rowLabelrequired | Localised heading for the row identity column, for example “Checkpoint”. | string | – |
columnsrequired | – | readonly DataMatrixColumn[] | – |
rowsrequired | – | readonly DataMatrixRow[] | – |
eyebrow | – | string | null | – |
title | – | string | null | – |
description | – | string | null | – |
summary | – | JSXChild | – |
width | Controls only the scrollable table's readable floor, never the viewport. | 'default' | 'wide' | 'default' |
#Types
#DataMatrixColumn
| Property | Description | Type | Default |
|---|---|---|---|
idrequired | – | string | – |
labelrequired | – | string | – |
description | – | string | null | – |
#DataMatrixProps
The properties of DataMatrix, listed above.
#DataMatrixRow
| Property | Description | Type | Default |
|---|---|---|---|
idrequired | – | string | – |
labelrequired | – | string | – |
description | – | string | null | – |
leading | – | JSXChild | – |
status | – | JSXChild | – |
actions | – | JSXChild | – |
cellsrequired | – | Readonly<Record<string, JSXChild>> | – |
#Hooks
The data-ui values these components render. Select them in tests and behaviour; their look belongs to the design system. See Contract.
data-matrixdata-matrix-headdata-matrix-headingdata-matrix-eyebrowdata-matrix-titledata-matrix-descriptiondata-matrix-summarydata-matrix-scrolldata-matrix-tabledata-matrix-columndata-matrix-row-headdata-matrix-row-leadingdata-matrix-row-titledata-matrix-row-descriptiondata-matrix-row-statusdata-matrix-row-actionsdata-matrix-cell