Corpora UI

Records table

Selectable records with an initial avatar, tags with +N overflow, relative date and connection strength. Selection lives in recordsTableSelectionAtom(id); sorting is a callback only.

Preview

Use the controls to explore the component's props.

Props

PropTypeDefaultDescription
rows (required)IRecordsRow[]—id, name, initial, tags, lastInteraction, strength.
selected / onSelectionChangeReadonlySet<string>—Controlled selection.
onSortChange(column) => void—Header sort control; the design shows no direction.
maxTagsnumber2Tags shown before +N.

Example

Company
1AAlpine Churn — ZürichB2BGelato+14 days agoVery strong
2KKumo CreameryRetail2 weeks agoStrong
3MMaple OrbitWholesaleActiveYesterdayModerate
4CCoral Coast SorbetRetailGelato+21 month agoWeak
import { RecordsTable } from "@exegia/corpora-ui"

<RecordsTable rows={rows} onSortChange={sortBy} />

The selection and company columns stay pinned during horizontal scrolling. Set stickyHeader and constrain the height (for example, className="max-h-64") to keep the header visible while scrolling vertically. Scrollbars are hidden; trackpad, wheel, touch, and keyboard scrolling remain available.

Last updated on

On this page