Skip to main content

Table

Display structured data in rows and columns. For sorting, search, and pagination use PrimusDataTable.

Preview · Table

Code​

<div class="table">
<table>
<thead>
<tr>
<th aria-sort="ascending">Tenant</th>
<th>Plan</th><th>Status</th><th>MRR</th>
</tr>
</thead>
<tbody>
<tr>
<td>Acme Corp</td><td>Enterprise</td>
<td><span class="badge success">Active</span></td>
<td>$12,000</td>
</tr>
<tr>
<td>Globex Inc</td><td>Pro</td>
<td><span class="badge warning">Trial</span></td>
<td>$499</td>
</tr>
<tr>
<td>Initech</td><td>Starter</td>
<td><span class="badge danger">Suspended</span></td>
<td>—</td>
</tr>
</tbody>
</table>
</div>

Props​

PropTypeDefaultDescription
columnsTableColumn[]requiredColumn definitions
dataany[]requiredRow data
stripedbooleanfalseZebra rows
hoverablebooleantrueRow hover
Version history

See the Changelog for version history and breaking changes.