Table Overflow

Beta

Limit table height and automatically append a trailing “and X more” row when there are more rows than can fit. Opt in with data-table-limit="true" and set a height with data-table-max-height or use auto to inherit from the parent container.

Table Overflow

A regular-sized table demonstrating the overflow behavior within a fixed height budget.

EmployeeRolePranksSalesScoreFun Fact
1Dwight SchruteAssistant to the Regional Manager244412.91Owns a beet farm
2Jim HalpertSales Rep42218.69Dwight hates him
3Stanley HudsonSales Rep0285.83Only smiles on Pretzel Day
4Phyllis VanceSales Rep0183.79Married to Bob Vance
5Andy BernardSales Rep2143.18Cornell graduate
6Creed BrattonQuality Assurance????????????
7Karen FilippelliSales / Utica Manager0122.57Jim’s ex from Stamford
8Michael ScottRegional Manager1501.65World’s Best Boss mug
9Todd PackerTraveling Salesman061.34Terrible human being
10Ryan HowardTemp / VP / Janitor120.63Pitched the Sabre Pyramid
11Pam BeeslyReceptionist / Office Admin300.43Art school dreamer
12Meredith PalmerSupplier Relations010.32Exchanged paper for steak
13Holly FlaxHR (Nashua)200.32Michael’s soulmate
14Darryl PhilbinWarehouse Foreman100.22Started a band
15Kevin MaloneAccountant100.22Spilled the chili
16Erin HannonReceptionist100.22Dates Gabe, then Andy
17Kelly KapoorCustomer Service000.00Obsessed with Ryan
18Angela MartinAccountant000.00Owns 12 cats
19Oscar MartinezAccountant000.00“Actually...” guy
20Roy AndersonWarehouse000.00Pam’s ex-fiancé
21Toby FlendersonHR000.00Michael hates him
22Jan LevinsonCorporate000.00Serenity by Jan
23David WallaceCFO000.00Invented “Suck It”
24Robert CaliforniaCEO000.00The Lizard King
25Nellie BertramSpecial Projects Manager000.00Took Andy’s job
26Deangelo VickersRegional Manager000.00Juggled invisible balls
27Charles MinerCorporate VP000.00Hated Jim’s pranks
28Gabe LewisSabre Liaison000.00Tall, awkward, hates horror movies
29Clark GreenSales000.00Mini Dwight
30Pete MillerSales000.00Nickname: Plop
Table Overflow Regular • Auto height
<table class="table" data-table-limit="true">
  <thead>
    <tr>
      <th><span class="title">#</span></th>
      <th><span class="title">Employee</span></th>
      <th><span class="title">Role</span></th>
      <th><span class="title">Pranks</span></th>
      <th><span class="title">Sales</span></th>
      <th><span class="title">Score</span></th>
      <th><span class="title">Fun Fact</span></th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="label label--small">Row 1, Cell 1</span></td>
      <td><span class="label">Row 1, Cell 2</span></td>
      <td><span class="label label--small">Row 1, Cell 3</span></td>
    </tr>
  </tbody>
</table>