B2B Tables

Classic data tables with mobile transformation - on phones they automatically turn into readable cards.

B2B Tables (Mobile-First Data)

Use the .table-wrapper container for horizontal scroll on desktop. Adding the .table-cards class turns the table into readable cards on phones.

Compact Table (Zebra + Hover)

Invoice Client Amount Status
#INV-2026/01 John Smith $3,125 Paid
#INV-2026/02 Anna Miller $1,050 Pending

Loose Table (Dark, Compact Header)

User Role Last Login
Peter Wilson Administrator Today, 08:45
Catherine Fox Manager Yesterday, 16:20

Large Header (thead-lg) + Cards Always (table-cards-always)

Product SKU Stock Level
Office Chair PRO FB-1042 32 pcs
Adjustable Desk BR-2091 0 pcs
<!-- Large header, cards ALWAYS (not just on mobile) -->
<table class="table thead-lg table-cards-always">
  <thead class="thead-primary">
    <tr><th>Product</th><th>SKU</th></tr>
  </thead>
  <tbody>
    <tr>
      <td data-label="Product">Office Chair PRO</td>
      <td data-label="SKU">FB-1042</td>
    </tr>
  </tbody>
</table>

<!-- Compact Table with Zebra Stripes -->
<div class="table-wrapper">
  <table class="table table-sm table-striped table-hover table-cards">
    <thead>
      <tr>
        <th>Invoice</th>
        <th>Status</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <!-- The data-label attribute is key for the mobile view! -->
        <td data-label="Invoice">#INV-2026/01</td>
        <td data-label="Status"><span class="badge badge-success">Paid</span></td>
      </tr>
    </tbody>
  </table>
</div>

<!-- Table with a Dark, Compact Header -->
<div class="table-wrapper">
  <table class="table table-lg table-borderless">
    <!-- Add classes to thead -->
    <thead class="thead-dark thead-sm">
      <tr>
        <th>User</th>
        <th>Role</th>
      </tr>
    </thead>
    <tbody>
      <!-- ... -->
    </tbody>
  </table>
</div>