Skip to main content
Data DisplayLevel 2

Table

表格

WebDesktopDifficulty: Medium

Rows and columns that cross, used to compare several attributes across several objects side by side.

01

Live Demo

Actually clickable
TypeStatus
screen.png0.4 MBScreenshotIgnored
IMG_0231.jpg3.2 MBPhotoCleaned
DSC_4478.jpg4.8 MBPhotoKept
clip_01.mp4128.5 MBVideoCleaned
Click a heading to sort. Numbers right-aligned and tabular, so sizes compare at a glance.

What you just saw:The order management screen of an admin console, the data range in Excel, a calendar or class timetable, the comparison table in a financial report.

02

What it actually is

A List makes people scan vertically, a Table makes people compare horizontally. When the question is "who is highest" or "which row is over budget", reach for a table. The cost of a table is horizontal space, so a narrow-screen fallback is mandatory.

tabledata griddata tablegridspreadsheet
03

Anatomy · What it's made of

  1. Header Row表头

    Sticky, with sort arrows

  2. Cell单元格

    Text left-aligned, numbers right-aligned

  3. Row Hover行悬停

    Whole row highlights to signal it is tappable

  4. Column Resize列宽调整

    Drag the header edge, optional

  5. Empty Cell空值

    Show an em dash rather than blank space

04

When to Use

When it fits, and when it doesn't
Table usage recommendations
SituationUse it?
You need to compare multiple values of the same attribute horizontallyYes
There are many fields and the structure is fixed (orders, users, logs)Yes
You need sorting and filteringYes
You are only showing a small amount of data across three fieldsDepends
The screen is a narrow mobile viewportNo

A table on mobile must degrade into a card list, otherwise users end up scrolling sideways and giving up.

Do not make every cell tappable — users lose track of what is actually actionable.

05

Similar Patterns

Don't mix these up
06

How to tell AI

Three levels of prompt

Add the component name and specifics

Add an orders data table: clickable sortable headers, right-aligned numeric columns, status shown with colored chips, horizontal scroll on the container, and a sticky header row.

07

Don't just say this to AI

Bad → Better

Don't say this to AI

Add a table.

Say this instead

Add a data Table: sortable header buttons with aria-sort, numeric columns right-aligned with tabular-nums, sticky header, horizontally scrolling container, em dashes for empty values, and a mobile fallback to a card layout that reveals field names via data-label.

08

Share this card

Social-ready

Turn this pattern into a 3:4 or 1:1 knowledge card and export it as PNG right in the browser. No backend needed.