Skip to content

Layout

Data table

Also calledtabletabular datarecords table

A structured view of records in rows and fields in columns, with headers explaining how to read the values.

How people describe it

  • “information lined up in rows and columns”
  • “spreadsheet-like list with headings above each column”
  • “names dates and amounts arranged in a grid”

Good for

  • Comparing records
  • Displaying orders or account activity

Don’t mix it up with

  • Arranges content tiles for emphasis rather than aligning fields across records.

Accessibility checklist

  • Use table, caption, and scoped header cells
  • Keep overflow regions keyboard accessible with visible focus
  • Use real buttons and aria-sort if sorting is implemented

Try it

Team members. Column headers sort the table.
Ana ReyesDesignerActive₱4,200
Ben CruzEngineerAway₱5,100
Cathy LimManagerActive₱6,400
Dan OrtizQAInvited₱3,800
Eli SantosEngineerActive₱5,300

Click a column header to sort. Tick rows to select them.

Prompt

Add a data table with a descriptive caption and associated column headers.

~19 estimated prompt tokensDetailed: ~77 estimated prompt tokens

Rough estimate for prompt text only; actual counts vary by model and context.

<div role="region" aria-label="Recent orders table" tabindex="0" style="max-width:100%; overflow:auto">
  <table style="width:100%; border-collapse:collapse">
    <caption>Recent orders</caption>
    <thead>
      <tr><th scope="col">Order</th><th scope="col">Status</th><th scope="col">Total</th></tr>
    </thead>
    <tbody>
      <tr><th scope="row">A104</th><td>Delivered</td><td>$24.00</td></tr>
      <tr><th scope="row">A105</th><td>Processing</td><td>$18.00</td></tr>
    </tbody>
  </table>
</div>

Used in

Explore website blueprints that use this component.