EF
EF Design System

Table

Data tables display structured information in rows and columns. They support sortable headers, alternating row backgrounds, and row hover highlights.

Sortable Table

Click the Name, Views, or Date column headers to sort. The arrow indicates direction.

NameStatusViewsDate
Getting Started with AIPublished124002026-03-20
Building a Feed SystemPublished89002026-03-15
Performance MonitoringPublished56002026-03-10
Component ArchitectureIn Review32002026-03-18
Design Token GuideDraft02026-03-22
Notion IntegrationScheduled02026-03-25
tsx
<Table
  columns={[
    { key: "name", label: "Name", sortable: true },
    { key: "status", label: "Status" },
    { key: "views", label: "Views", sortable: true },
  ]}
  data={data}
  sortKey={sortKey}
  sortDir={sortDir}
  onSort={handleSort}
/>

Row Hover

Hover over any row to see the highlight effect. Alternating backgrounds improve scannability.

ComponentPropsStatus
Button7Stable
Badge1Stable
Card6Stable
Modal5Beta

Props

PropTypeDefaultDescriptionRequired
columnsArray<{ key, label, sortable? }>-Column definitionsNo
dataArray<Record<string, any>>-Row data keyed by column keyNo
sortKeystring-Currently sorted column keyNo
sortDir"asc" | "desc"-Sort directionNo
onSort(key: string) => void-Callback when a sortable header is clickedNo

Usage Guidelines

  • Use tables for data sets where comparison across rows is important.
  • Mark only columns with meaningful sort order as sortable.
  • Alternating row colors and hover highlights improve readability for large data sets.
  • Right-align numeric columns for better visual scanning.