Search the documentation

Type to search page titles, component names and descriptions.

    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.

    Outcome tracking

    Barrier recovery routine

    Started 01 September 2026

    2 / 3 complete
    CheckpointFrontRequiredLeft profileRight profile
    D+1 · BaselineComplete
    02/09/2026
    Photo 01Photo 02Photo 03
    D+7 · AdaptationPlanned
    08/09/2026
    UploadUploadNot 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.

    PropertyDescriptionTypeDefault
    labelrequired–string–
    rowLabelrequiredLocalised 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–
    widthControls only the scrollable table's readable floor, never the viewport.'default' | 'wide''default'

    #Types

    #DataMatrixColumn

    PropertyDescriptionTypeDefault
    idrequired–string–
    labelrequired–string–
    description–string | null–

    #DataMatrixProps

    The properties of DataMatrix, listed above.

    #DataMatrixRow

    PropertyDescriptionTypeDefault
    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-matrix
    • data-matrix-head
    • data-matrix-heading
    • data-matrix-eyebrow
    • data-matrix-title
    • data-matrix-description
    • data-matrix-summary
    • data-matrix-scroll
    • data-matrix-table
    • data-matrix-column
    • data-matrix-row-head
    • data-matrix-row-leading
    • data-matrix-row-title
    • data-matrix-row-description
    • data-matrix-row-status
    • data-matrix-row-actions
    • data-matrix-cell