Skip to main content

BETANow in public beta.Public betaBeta

日本語Español

TBL-010 Published

Expandable-row table

Each row of the table starts with a "Details" button that opens a description and a booking button right below that row.

FigmaThis part is included in our free, editable Figma file: 235 website UI patterns across 32 parts, 2 designs each Open in Figma Community ↗ (opens in a new tab)

Wireframe (desktop) | Expandable-row table

Expandable-row table UI design (desktop wireframe)

Wireframe (mobile) | Expandable-row table

Expandable-row table UI design (mobile wireframe)

What changes on mobile

  1. Each row becomes a block: Columns cannot sit side by side, so date, name, venue and seats stack into one block per item.
  2. Full-width Details button: The small button at the start of the row is hard to tap, so it becomes a full-width button at the end of each block.
  3. Opened content in a panel: The opened content sits in a pale panel joined to the row above, so it is clear which item it belongs to.

Before you choose this pattern | Expandable-row table

Good fit

  • Each row has a description or action that does not fit in the table
  • A few columns such as date, place and availability are worth comparing in a table
  • People want to check details on the spot without opening a page per item
  • Seminar and open-day schedules, job listings, order history

Poor fit

  • Each item has a long description with photos or a map (link to a detail page instead)
  • You want many attributes compared across columns (the difference-highlight table works better)

Why this wireframe works | Expandable-row table

The table keeps only what people compare

Putting descriptions in the table makes rows tall and hard to compare. The table holds only date, name, venue and seats; descriptions appear when opened.

Details open right below the row

When details appear outside the table, people have to trace which row they belong to. Details open directly under the pressed row, across the full table width.

The row and its details share one surface

It can be unclear whether opened details belong to the row above or below. The open row and its details share the same pale background, so they read as one.

The next step sits inside the details

Making people look for a booking page after reading adds effort. A booking button sits inside the details, and changes when there is no space left.

Any number of rows can be open

If opening one row closes another, two sessions cannot be compared. Rows can be opened at the same time.

Common mistakes when building it

Making the whole row clickable, clashing with links inside it

If the whole row toggles, people open it while trying to press a link in the row. Keep the toggle to one button labelled “Details”.

The open state is not announced

A visual arrow does not tell screen reader users whether a row is open. Give the button aria-expanded and make clear which row it belongs to.

Opening details at the bottom of the table

Details far from the pressed row leave people unsure which row they belong to. Open them right below the row.

Repeating table content in the details

Restating the date and venue inside the details just adds reading. Include only the description and actions that are not already in the table.

Keeping the table on mobile and making it scroll sideways

Toggling while scrolling sideways leaves half of the opened content off screen. Turn rows into blocks on mobile.

Frequently asked questions

How is it different from an accordion?

They are built in a similar way, but the expandable-row table keeps rows comparable as a table while opening details one row at a time. If there is nothing to compare and only headings and text, an accordion such as the exclusive accordion works better.

How should the opened details be marked up?

A common approach is a new row (tr) directly below, with one cell spanning all the columns (colspan) holding the details. Hide it with hidden when closed and point to it from the button with aria-controls.

Is a separate detail page better?

If the details are a few lines and people want to compare while looking at the table, the expandable-row table works well. If you need photos, maps or long descriptions, create detail pages and link to them from each row.

Do I need an “Expand all” button?

With only a few rows, it is not needed. If people often want everything open to print or compare, put “Expand all” above the table.

Related pages

Share this pattern

Send this page to your team or your design partner.

Was this pattern useful?

Written by

Yuta Okano

ENVY DESIGN Inc.

CEO / Director / Designer

14 years in the web industry. Has worked on more than 500 web projects, from corporate and recruiting sites to e-commerce. Focuses on information architecture, direction and design, from planning websites to improving them. In recent years he has focused on AIO (AI optimization) and GEO, helping sites get cited by generative AI search such as ChatGPT, Perplexity and Google AI Overviews.

Review and revision history

  1. Published AvatarYuta Okano Pattern published