Table
Displays tabular data with rows and columns.
Default
Basic table with headers and data rows.
html
| Invoice | Status | Method | Amount |
|---|---|---|---|
| INV-001 | Paid | Credit Card | $250.00 |
| INV-002 | Pending | PayPal | $150.00 |
| INV-003 | Paid | Bank Transfer | $350.00 |
| INV-004 | Overdue | Credit Card | $450.00 |
| INV-005 | Paid | PayPal | $550.00 |
<div class="vt-table-wrap">
<table class="vt-table">
<thead>
<tr>
<th scope="col">Invoice</th>
<th scope="col">Status</th>
<th scope="col">Method</th>
<th scope="col" class="vt-table-numeric">Amount</th>
</tr>
</thead>
<tbody>
<tr>
<td class="vt-table-strong">INV-001</td>
<td><span class="vt-badge vt-badge-soft vt-badge-success">Paid</span></td>
<td class="vt-table-muted">Credit Card</td>
<td class="vt-table-numeric">$250.00</td>
</tr><tr>
<td class="vt-table-strong">INV-002</td>
<td><span class="vt-badge vt-badge-soft vt-badge-warning">Pending</span></td>
<td class="vt-table-muted">PayPal</td>
<td class="vt-table-numeric">$150.00</td>
</tr><tr>
<td class="vt-table-strong">INV-003</td>
<td><span class="vt-badge vt-badge-soft vt-badge-success">Paid</span></td>
<td class="vt-table-muted">Bank Transfer</td>
<td class="vt-table-numeric">$350.00</td>
</tr><tr>
<td class="vt-table-strong">INV-004</td>
<td><span class="vt-badge vt-badge-soft vt-badge-danger">Overdue</span></td>
<td class="vt-table-muted">Credit Card</td>
<td class="vt-table-numeric">$450.00</td>
</tr><tr>
<td class="vt-table-strong">INV-005</td>
<td><span class="vt-badge vt-badge-soft vt-badge-success">Paid</span></td>
<td class="vt-table-muted">PayPal</td>
<td class="vt-table-numeric">$550.00</td>
</tr>
</tbody>
</table>
</div>
With Sorting
Sortable headers hold a vt-table-sort button; aria-sort on the th marks the sorted column.
html
| Alice Smith | alice@example.com | Admin | Active |
| Bob Johnson | bob@example.com | Editor | Active |
| Carol Williams | carol@example.com | Viewer | Inactive |
| David Miller | david@example.com | Editor | Active |
<div class="vt-table-wrap">
<table class="vt-table">
<thead>
<tr>
<th scope="col" aria-sort="ascending">
<button type="button" class="vt-table-sort">Name <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" aria-hidden="true">
<path d="M17.9998 15C17.9998 15 13.5809 9.00001 11.9998 9C10.4187 8.99999 5.99985 15 5.99985 15" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg></button>
</th>
<th scope="col" aria-sort="none">
<button type="button" class="vt-table-sort">Email <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" aria-hidden="true">
<path d="M18 14C18 14 13.5811 19 12 19C10.4188 19 6 14 6 14" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M18 9.99996C18 9.99996 13.5811 5.00001 12 5C10.4188 4.99999 6 10 6 10" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg></button>
</th>
<th scope="col" aria-sort="none">
<button type="button" class="vt-table-sort">Role <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" aria-hidden="true">
<path d="M18 14C18 14 13.5811 19 12 19C10.4188 19 6 14 6 14" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M18 9.99996C18 9.99996 13.5811 5.00001 12 5C10.4188 4.99999 6 10 6 10" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg></button>
</th>
<th scope="col" aria-sort="none">
<button type="button" class="vt-table-sort">Status <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" aria-hidden="true">
<path d="M18 14C18 14 13.5811 19 12 19C10.4188 19 6 14 6 14" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M18 9.99996C18 9.99996 13.5811 5.00001 12 5C10.4188 4.99999 6 10 6 10" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg></button>
</th>
</tr>
</thead>
<tbody>
<tr>
<td class="vt-table-strong">Alice Smith</td>
<td class="vt-table-muted">alice@example.com</td>
<td class="vt-table-muted">Admin</td>
<td><span class="vt-badge vt-badge-soft vt-badge-success">Active</span></td>
</tr><tr>
<td class="vt-table-strong">Bob Johnson</td>
<td class="vt-table-muted">bob@example.com</td>
<td class="vt-table-muted">Editor</td>
<td><span class="vt-badge vt-badge-soft vt-badge-success">Active</span></td>
</tr><tr>
<td class="vt-table-strong">Carol Williams</td>
<td class="vt-table-muted">carol@example.com</td>
<td class="vt-table-muted">Viewer</td>
<td><span class="vt-badge vt-badge-soft vt-badge-warning">Inactive</span></td>
</tr><tr>
<td class="vt-table-strong">David Miller</td>
<td class="vt-table-muted">david@example.com</td>
<td class="vt-table-muted">Editor</td>
<td><span class="vt-badge vt-badge-soft vt-badge-success">Active</span></td>
</tr>
</tbody>
</table>
</div>
Striped
Alternating row colors for improved readability.
html
| Name | Status | Amount | |
|---|---|---|---|
| Alice Johnson | alice@example.com | Paid | $1,250.00 |
| Bob Smith | bob@example.com | Pending | $830.00 |
| Carol Williams | carol@example.com | Paid | $2,100.00 |
| David Brown | david@example.com | Failed | $475.00 |
| Emma Davis | emma@example.com | Paid | $3,200.00 |
<div class="vt-table-wrap">
<table class="vt-table vt-table-striped">
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Email</th>
<th scope="col">Status</th>
<th scope="col" class="vt-table-numeric">Amount</th>
</tr>
</thead>
<tbody>
<tr>
<td class="vt-table-strong">Alice Johnson</td>
<td class="vt-table-muted">alice@example.com</td>
<td><span class="vt-badge vt-badge-soft vt-badge-success">Paid</span></td>
<td class="vt-table-numeric">$1,250.00</td>
</tr><tr>
<td class="vt-table-strong">Bob Smith</td>
<td class="vt-table-muted">bob@example.com</td>
<td><span class="vt-badge vt-badge-soft vt-badge-warning">Pending</span></td>
<td class="vt-table-numeric">$830.00</td>
</tr><tr>
<td class="vt-table-strong">Carol Williams</td>
<td class="vt-table-muted">carol@example.com</td>
<td><span class="vt-badge vt-badge-soft vt-badge-success">Paid</span></td>
<td class="vt-table-numeric">$2,100.00</td>
</tr><tr>
<td class="vt-table-strong">David Brown</td>
<td class="vt-table-muted">david@example.com</td>
<td><span class="vt-badge vt-badge-soft vt-badge-danger">Failed</span></td>
<td class="vt-table-numeric">$475.00</td>
</tr><tr>
<td class="vt-table-strong">Emma Davis</td>
<td class="vt-table-muted">emma@example.com</td>
<td><span class="vt-badge vt-badge-soft vt-badge-success">Paid</span></td>
<td class="vt-table-numeric">$3,200.00</td>
</tr>
</tbody>
</table>
</div>
With Selection
Checkboxes for selecting individual rows.
html
| Invoice | Customer | Date | Amount | |
|---|---|---|---|---|
| INV-001 | Acme Corp | Jan 15, 2026 | $1,250.00 | |
| INV-002 | Globex Inc | Jan 20, 2026 | $830.00 | |
| INV-003 | Stark Industries | Feb 01, 2026 | $2,100.00 | |
| INV-004 | Wayne Enterprises | Feb 05, 2026 | $675.00 |
<div class="vt-table-wrap">
<table class="vt-table">
<thead>
<tr>
<th scope="col" class="vt-table-select">
<div class="vt-checkbox" role="checkbox" aria-checked="false" aria-label="Select all"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="check-icon" aria-hidden="true">
<path d="M5 13.2592L7.58583 15.9568C8.2525 16.6523 8.58583 17 9.00004 17C9.41425 17 9.74759 16.6523 10.4143 15.9568L19 7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3"></path>
</svg></div>
</th>
<th scope="col">Invoice</th>
<th scope="col">Customer</th>
<th scope="col">Date</th>
<th scope="col" class="vt-table-numeric">Amount</th>
</tr>
</thead>
<tbody>
<tr class="vt-selected">
<td class="vt-table-select">
<div class="vt-checkbox checked" role="checkbox" aria-checked="true" aria-label="Select INV-001"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="check-icon" aria-hidden="true">
<path d="M5 13.2592L7.58583 15.9568C8.2525 16.6523 8.58583 17 9.00004 17C9.41425 17 9.74759 16.6523 10.4143 15.9568L19 7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3"></path>
</svg></div>
</td>
<td class="vt-table-strong">INV-001</td>
<td class="vt-table-muted">Acme Corp</td>
<td class="vt-table-muted">Jan 15, 2026</td>
<td class="vt-table-numeric">$1,250.00</td>
</tr><tr>
<td class="vt-table-select">
<div class="vt-checkbox" role="checkbox" aria-checked="false" aria-label="Select INV-002"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="check-icon" aria-hidden="true">
<path d="M5 13.2592L7.58583 15.9568C8.2525 16.6523 8.58583 17 9.00004 17C9.41425 17 9.74759 16.6523 10.4143 15.9568L19 7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3"></path>
</svg></div>
</td>
<td class="vt-table-strong">INV-002</td>
<td class="vt-table-muted">Globex Inc</td>
<td class="vt-table-muted">Jan 20, 2026</td>
<td class="vt-table-numeric">$830.00</td>
</tr><tr class="vt-selected">
<td class="vt-table-select">
<div class="vt-checkbox checked" role="checkbox" aria-checked="true" aria-label="Select INV-003"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="check-icon" aria-hidden="true">
<path d="M5 13.2592L7.58583 15.9568C8.2525 16.6523 8.58583 17 9.00004 17C9.41425 17 9.74759 16.6523 10.4143 15.9568L19 7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3"></path>
</svg></div>
</td>
<td class="vt-table-strong">INV-003</td>
<td class="vt-table-muted">Stark Industries</td>
<td class="vt-table-muted">Feb 01, 2026</td>
<td class="vt-table-numeric">$2,100.00</td>
</tr><tr>
<td class="vt-table-select">
<div class="vt-checkbox" role="checkbox" aria-checked="false" aria-label="Select INV-004"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="check-icon" aria-hidden="true">
<path d="M5 13.2592L7.58583 15.9568C8.2525 16.6523 8.58583 17 9.00004 17C9.41425 17 9.74759 16.6523 10.4143 15.9568L19 7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3"></path>
</svg></div>
</td>
<td class="vt-table-strong">INV-004</td>
<td class="vt-table-muted">Wayne Enterprises</td>
<td class="vt-table-muted">Feb 05, 2026</td>
<td class="vt-table-numeric">$675.00</td>
</tr>
</tbody>
</table>
<div class="vt-table-footer">
<span>2 of 4 row(s) selected.</span>
</div>
</div>
Compact
Denser layout with reduced padding for large datasets.
html
| Name | Status | Amount | |
|---|---|---|---|
| Alice Johnson | alice@example.com | Paid | $1,250.00 |
| Bob Smith | bob@example.com | Pending | $830.00 |
| Carol Williams | carol@example.com | Paid | $2,100.00 |
| David Brown | david@example.com | Failed | $475.00 |
| Emma Davis | emma@example.com | Paid | $3,200.00 |
| Frank Miller | frank@example.com | Pending | $620.00 |
| Grace Lee | grace@example.com | Paid | $1,890.00 |
| Henry Wilson | henry@example.com | Paid | $540.00 |
<div class="vt-table-wrap">
<table class="vt-table vt-table-compact">
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Email</th>
<th scope="col">Status</th>
<th scope="col" class="vt-table-numeric">Amount</th>
</tr>
</thead>
<tbody>
<tr>
<td class="vt-table-strong">Alice Johnson</td>
<td class="vt-table-muted">alice@example.com</td>
<td><span class="vt-badge vt-badge-soft vt-badge-success">Paid</span></td>
<td class="vt-table-numeric">$1,250.00</td>
</tr><tr>
<td class="vt-table-strong">Bob Smith</td>
<td class="vt-table-muted">bob@example.com</td>
<td><span class="vt-badge vt-badge-soft vt-badge-warning">Pending</span></td>
<td class="vt-table-numeric">$830.00</td>
</tr><tr>
<td class="vt-table-strong">Carol Williams</td>
<td class="vt-table-muted">carol@example.com</td>
<td><span class="vt-badge vt-badge-soft vt-badge-success">Paid</span></td>
<td class="vt-table-numeric">$2,100.00</td>
</tr><tr>
<td class="vt-table-strong">David Brown</td>
<td class="vt-table-muted">david@example.com</td>
<td><span class="vt-badge vt-badge-soft vt-badge-danger">Failed</span></td>
<td class="vt-table-numeric">$475.00</td>
</tr><tr>
<td class="vt-table-strong">Emma Davis</td>
<td class="vt-table-muted">emma@example.com</td>
<td><span class="vt-badge vt-badge-soft vt-badge-success">Paid</span></td>
<td class="vt-table-numeric">$3,200.00</td>
</tr><tr>
<td class="vt-table-strong">Frank Miller</td>
<td class="vt-table-muted">frank@example.com</td>
<td><span class="vt-badge vt-badge-soft vt-badge-warning">Pending</span></td>
<td class="vt-table-numeric">$620.00</td>
</tr><tr>
<td class="vt-table-strong">Grace Lee</td>
<td class="vt-table-muted">grace@example.com</td>
<td><span class="vt-badge vt-badge-soft vt-badge-success">Paid</span></td>
<td class="vt-table-numeric">$1,890.00</td>
</tr><tr>
<td class="vt-table-strong">Henry Wilson</td>
<td class="vt-table-muted">henry@example.com</td>
<td><span class="vt-badge vt-badge-soft vt-badge-success">Paid</span></td>
<td class="vt-table-numeric">$540.00</td>
</tr>
</tbody>
</table>
</div>
With Pagination
A footer under the rows with a summary and page controls.
html
| Invoice | Customer | Status | Amount |
|---|---|---|---|
| INV-011 | Acme Corp | Paid | $320.00 |
| INV-012 | Globex Inc | Pending | $190.00 |
| INV-013 | Initech LLC | Paid | $720.00 |
| INV-014 | Umbrella Corp | Paid | $450.00 |
<div class="vt-table-wrap">
<table class="vt-table">
<thead>
<tr>
<th scope="col">Invoice</th>
<th scope="col">Customer</th>
<th scope="col">Status</th>
<th scope="col" class="vt-table-numeric">Amount</th>
</tr>
</thead>
<tbody>
<tr>
<td class="vt-table-strong">INV-011</td>
<td class="vt-table-muted">Acme Corp</td>
<td><span class="vt-badge vt-badge-soft vt-badge-success">Paid</span></td>
<td class="vt-table-numeric">$320.00</td>
</tr><tr>
<td class="vt-table-strong">INV-012</td>
<td class="vt-table-muted">Globex Inc</td>
<td><span class="vt-badge vt-badge-soft vt-badge-warning">Pending</span></td>
<td class="vt-table-numeric">$190.00</td>
</tr><tr>
<td class="vt-table-strong">INV-013</td>
<td class="vt-table-muted">Initech LLC</td>
<td><span class="vt-badge vt-badge-soft vt-badge-success">Paid</span></td>
<td class="vt-table-numeric">$720.00</td>
</tr><tr>
<td class="vt-table-strong">INV-014</td>
<td class="vt-table-muted">Umbrella Corp</td>
<td><span class="vt-badge vt-badge-soft vt-badge-success">Paid</span></td>
<td class="vt-table-numeric">$450.00</td>
</tr>
</tbody>
</table>
<div class="vt-table-footer">
<span>Showing 11–14 of 42 results</span>
<nav class="vt-pagination" aria-label="Pagination">
<button type="button" class="vt-page-btn" aria-label="First page"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" aria-hidden="true">
<path d="M18 17C18 17 13 13.3176 13 12C13 10.6824 18 7 18 7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M11 17C11 17 6.00001 13.3176 6 12C5.99999 10.6824 11 7 11 7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg></button>
<button type="button" class="vt-page-btn" aria-label="Previous page"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" aria-hidden="true">
<path d="M15 18C15 18 9.00001 13.5811 9 12C8.99999 10.4188 15 6 15 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg></button>
<button type="button" class="vt-page-btn">1</button>
<button type="button" class="vt-page-btn">2</button>
<button type="button" class="vt-page-btn vt-active" aria-current="page">3</button>
<button type="button" class="vt-page-btn">4</button>
<span class="vt-pagination-ellipsis">…</span>
<button type="button" class="vt-page-btn">11</button>
<button type="button" class="vt-page-btn" aria-label="Next page"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" aria-hidden="true">
<path d="M9.00005 18C9.00005 18 15 13.5811 15 12C15 10.4188 9 6 9 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg></button>
<button type="button" class="vt-page-btn" aria-label="Last page"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" aria-hidden="true">
<path d="M6.00004 17C6.00004 17 11 13.3176 11 12C11 10.6824 6 7 6 7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M13 17C13 17 18 13.3176 18 12C18 10.6824 13 7 13 7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg></button>
</nav>
</div>
</div>
With Actions
Ghost icon buttons at the end of each row for quick operations.
html
| Invoice | Customer | Status | Amount | Actions |
|---|---|---|---|---|
| INV-001 | Acme Corp | Paid | $250.00 |
|
| INV-002 | Globex Inc | Pending | $150.00 |
|
| INV-003 | Stark Industries | Paid | $350.00 |
|
| INV-004 | Wayne Enterprises | Overdue | $450.00 |
|
<div class="vt-table-wrap">
<table class="vt-table">
<thead>
<tr>
<th scope="col">Invoice</th>
<th scope="col">Customer</th>
<th scope="col">Status</th>
<th scope="col" class="vt-table-numeric">Amount</th>
<th scope="col" class="vt-table-end">Actions</th>
</tr>
</thead>
<tbody>
<tr>
<td class="vt-table-strong">INV-001</td>
<td class="vt-table-muted">Acme Corp</td>
<td><span class="vt-badge vt-badge-soft vt-badge-success">Paid</span></td>
<td class="vt-table-numeric">$250.00</td>
<td class="vt-table-end">
<div class="vt-table-actions">
<button type="button" class="vt-btn vt-btn-ghost vt-btn-icon vt-btn-sm" aria-label="View"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
<path d="M2 8C2 8 6.47715 3 12 3C17.5228 3 22 8 22 8" stroke="currentColor" stroke-linecap="round" stroke-width="1.5"></path><path d="M21.544 13.045C21.848 13.4713 22 13.6845 22 14C22 14.3155 21.848 14.5287 21.544 14.955C20.1779 16.8706 16.6892 21 12 21C7.31078 21 3.8221 16.8706 2.45604 14.955C2.15201 14.5287 2 14.3155 2 14C2 13.6845 2.15201 13.4713 2.45604 13.045C3.8221 11.1294 7.31078 7 12 7C16.6892 7 20.1779 11.1294 21.544 13.045Z" stroke="currentColor" stroke-width="1.5"></path><path d="M15 14C15 12.3431 13.6569 11 12 11C10.3431 11 9 12.3431 9 14C9 15.6569 10.3431 17 12 17C13.6569 17 15 15.6569 15 14Z" stroke="currentColor" stroke-width="1.5"></path>
</svg></button>
<button type="button" class="vt-btn vt-btn-ghost vt-btn-icon vt-btn-sm" aria-label="Edit"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
<path d="M6 22V13.6944C6 12.1287 6 11.3459 6.21454 10.6077C6.42908 9.86948 6.84589 9.21812 7.6795 7.91542L10.3359 3.76419C11.0885 2.58806 11.4648 2 12 2C12.5352 2 12.9115 2.58806 13.6641 3.76419L16.3205 7.91542C17.1541 9.21812 17.5709 9.86948 17.7855 10.6077C18 11.3459 18 12.1287 18 13.6944V22" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M7 11C7.63152 11.3231 8.4887 11.9732 9.28009 11.9991C10.2988 12.0324 10.9868 11.1372 12 11.1372C13.0132 11.1372 13.7012 12.0324 14.7199 11.9991C15.5113 11.9732 16.3685 11.3231 17 11" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M12 12L12 22" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M10 5H14" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg></button>
<button type="button" class="vt-btn vt-btn-ghost vt-btn-icon vt-btn-sm" aria-label="Delete"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
<path d="M18.8516 16.3743L19.5 6H4.5L5.14839 16.3743C5.315 19.0401 5.39831 20.373 6.26426 21.1865C7.13021 22 8.46571 22 11.1367 22H12.8633C15.5343 22 16.8698 22 17.7357 21.1865C18.6017 20.373 18.685 19.0401 18.8516 16.3743Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M15.5 6H21M15.5 6L15.3721 4.97683C15.1595 3.2762 13.7139 2 12 2C10.2861 2 8.84047 3.2762 8.6279 4.97683L8.5 6M15.5 6H8.5M3 6H8.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M9.5 11V17M14.5 11V17" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg></button>
</div>
</td>
</tr><tr>
<td class="vt-table-strong">INV-002</td>
<td class="vt-table-muted">Globex Inc</td>
<td><span class="vt-badge vt-badge-soft vt-badge-warning">Pending</span></td>
<td class="vt-table-numeric">$150.00</td>
<td class="vt-table-end">
<div class="vt-table-actions">
<button type="button" class="vt-btn vt-btn-ghost vt-btn-icon vt-btn-sm" aria-label="View"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
<path d="M2 8C2 8 6.47715 3 12 3C17.5228 3 22 8 22 8" stroke="currentColor" stroke-linecap="round" stroke-width="1.5"></path><path d="M21.544 13.045C21.848 13.4713 22 13.6845 22 14C22 14.3155 21.848 14.5287 21.544 14.955C20.1779 16.8706 16.6892 21 12 21C7.31078 21 3.8221 16.8706 2.45604 14.955C2.15201 14.5287 2 14.3155 2 14C2 13.6845 2.15201 13.4713 2.45604 13.045C3.8221 11.1294 7.31078 7 12 7C16.6892 7 20.1779 11.1294 21.544 13.045Z" stroke="currentColor" stroke-width="1.5"></path><path d="M15 14C15 12.3431 13.6569 11 12 11C10.3431 11 9 12.3431 9 14C9 15.6569 10.3431 17 12 17C13.6569 17 15 15.6569 15 14Z" stroke="currentColor" stroke-width="1.5"></path>
</svg></button>
<button type="button" class="vt-btn vt-btn-ghost vt-btn-icon vt-btn-sm" aria-label="Edit"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
<path d="M6 22V13.6944C6 12.1287 6 11.3459 6.21454 10.6077C6.42908 9.86948 6.84589 9.21812 7.6795 7.91542L10.3359 3.76419C11.0885 2.58806 11.4648 2 12 2C12.5352 2 12.9115 2.58806 13.6641 3.76419L16.3205 7.91542C17.1541 9.21812 17.5709 9.86948 17.7855 10.6077C18 11.3459 18 12.1287 18 13.6944V22" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M7 11C7.63152 11.3231 8.4887 11.9732 9.28009 11.9991C10.2988 12.0324 10.9868 11.1372 12 11.1372C13.0132 11.1372 13.7012 12.0324 14.7199 11.9991C15.5113 11.9732 16.3685 11.3231 17 11" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M12 12L12 22" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M10 5H14" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg></button>
<button type="button" class="vt-btn vt-btn-ghost vt-btn-icon vt-btn-sm" aria-label="Delete"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
<path d="M18.8516 16.3743L19.5 6H4.5L5.14839 16.3743C5.315 19.0401 5.39831 20.373 6.26426 21.1865C7.13021 22 8.46571 22 11.1367 22H12.8633C15.5343 22 16.8698 22 17.7357 21.1865C18.6017 20.373 18.685 19.0401 18.8516 16.3743Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M15.5 6H21M15.5 6L15.3721 4.97683C15.1595 3.2762 13.7139 2 12 2C10.2861 2 8.84047 3.2762 8.6279 4.97683L8.5 6M15.5 6H8.5M3 6H8.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M9.5 11V17M14.5 11V17" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg></button>
</div>
</td>
</tr><tr>
<td class="vt-table-strong">INV-003</td>
<td class="vt-table-muted">Stark Industries</td>
<td><span class="vt-badge vt-badge-soft vt-badge-success">Paid</span></td>
<td class="vt-table-numeric">$350.00</td>
<td class="vt-table-end">
<div class="vt-table-actions">
<button type="button" class="vt-btn vt-btn-ghost vt-btn-icon vt-btn-sm" aria-label="View"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
<path d="M2 8C2 8 6.47715 3 12 3C17.5228 3 22 8 22 8" stroke="currentColor" stroke-linecap="round" stroke-width="1.5"></path><path d="M21.544 13.045C21.848 13.4713 22 13.6845 22 14C22 14.3155 21.848 14.5287 21.544 14.955C20.1779 16.8706 16.6892 21 12 21C7.31078 21 3.8221 16.8706 2.45604 14.955C2.15201 14.5287 2 14.3155 2 14C2 13.6845 2.15201 13.4713 2.45604 13.045C3.8221 11.1294 7.31078 7 12 7C16.6892 7 20.1779 11.1294 21.544 13.045Z" stroke="currentColor" stroke-width="1.5"></path><path d="M15 14C15 12.3431 13.6569 11 12 11C10.3431 11 9 12.3431 9 14C9 15.6569 10.3431 17 12 17C13.6569 17 15 15.6569 15 14Z" stroke="currentColor" stroke-width="1.5"></path>
</svg></button>
<button type="button" class="vt-btn vt-btn-ghost vt-btn-icon vt-btn-sm" aria-label="Edit"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
<path d="M6 22V13.6944C6 12.1287 6 11.3459 6.21454 10.6077C6.42908 9.86948 6.84589 9.21812 7.6795 7.91542L10.3359 3.76419C11.0885 2.58806 11.4648 2 12 2C12.5352 2 12.9115 2.58806 13.6641 3.76419L16.3205 7.91542C17.1541 9.21812 17.5709 9.86948 17.7855 10.6077C18 11.3459 18 12.1287 18 13.6944V22" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M7 11C7.63152 11.3231 8.4887 11.9732 9.28009 11.9991C10.2988 12.0324 10.9868 11.1372 12 11.1372C13.0132 11.1372 13.7012 12.0324 14.7199 11.9991C15.5113 11.9732 16.3685 11.3231 17 11" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M12 12L12 22" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M10 5H14" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg></button>
<button type="button" class="vt-btn vt-btn-ghost vt-btn-icon vt-btn-sm" aria-label="Delete"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
<path d="M18.8516 16.3743L19.5 6H4.5L5.14839 16.3743C5.315 19.0401 5.39831 20.373 6.26426 21.1865C7.13021 22 8.46571 22 11.1367 22H12.8633C15.5343 22 16.8698 22 17.7357 21.1865C18.6017 20.373 18.685 19.0401 18.8516 16.3743Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M15.5 6H21M15.5 6L15.3721 4.97683C15.1595 3.2762 13.7139 2 12 2C10.2861 2 8.84047 3.2762 8.6279 4.97683L8.5 6M15.5 6H8.5M3 6H8.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M9.5 11V17M14.5 11V17" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg></button>
</div>
</td>
</tr><tr>
<td class="vt-table-strong">INV-004</td>
<td class="vt-table-muted">Wayne Enterprises</td>
<td><span class="vt-badge vt-badge-soft vt-badge-danger">Overdue</span></td>
<td class="vt-table-numeric">$450.00</td>
<td class="vt-table-end">
<div class="vt-table-actions">
<button type="button" class="vt-btn vt-btn-ghost vt-btn-icon vt-btn-sm" aria-label="View"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
<path d="M2 8C2 8 6.47715 3 12 3C17.5228 3 22 8 22 8" stroke="currentColor" stroke-linecap="round" stroke-width="1.5"></path><path d="M21.544 13.045C21.848 13.4713 22 13.6845 22 14C22 14.3155 21.848 14.5287 21.544 14.955C20.1779 16.8706 16.6892 21 12 21C7.31078 21 3.8221 16.8706 2.45604 14.955C2.15201 14.5287 2 14.3155 2 14C2 13.6845 2.15201 13.4713 2.45604 13.045C3.8221 11.1294 7.31078 7 12 7C16.6892 7 20.1779 11.1294 21.544 13.045Z" stroke="currentColor" stroke-width="1.5"></path><path d="M15 14C15 12.3431 13.6569 11 12 11C10.3431 11 9 12.3431 9 14C9 15.6569 10.3431 17 12 17C13.6569 17 15 15.6569 15 14Z" stroke="currentColor" stroke-width="1.5"></path>
</svg></button>
<button type="button" class="vt-btn vt-btn-ghost vt-btn-icon vt-btn-sm" aria-label="Edit"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
<path d="M6 22V13.6944C6 12.1287 6 11.3459 6.21454 10.6077C6.42908 9.86948 6.84589 9.21812 7.6795 7.91542L10.3359 3.76419C11.0885 2.58806 11.4648 2 12 2C12.5352 2 12.9115 2.58806 13.6641 3.76419L16.3205 7.91542C17.1541 9.21812 17.5709 9.86948 17.7855 10.6077C18 11.3459 18 12.1287 18 13.6944V22" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M7 11C7.63152 11.3231 8.4887 11.9732 9.28009 11.9991C10.2988 12.0324 10.9868 11.1372 12 11.1372C13.0132 11.1372 13.7012 12.0324 14.7199 11.9991C15.5113 11.9732 16.3685 11.3231 17 11" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M12 12L12 22" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M10 5H14" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg></button>
<button type="button" class="vt-btn vt-btn-ghost vt-btn-icon vt-btn-sm" aria-label="Delete"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
<path d="M18.8516 16.3743L19.5 6H4.5L5.14839 16.3743C5.315 19.0401 5.39831 20.373 6.26426 21.1865C7.13021 22 8.46571 22 11.1367 22H12.8633C15.5343 22 16.8698 22 17.7357 21.1865C18.6017 20.373 18.685 19.0401 18.8516 16.3743Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M15.5 6H21M15.5 6L15.3721 4.97683C15.1595 3.2762 13.7139 2 12 2C10.2861 2 8.84047 3.2762 8.6279 4.97683L8.5 6M15.5 6H8.5M3 6H8.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M9.5 11V17M14.5 11V17" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg></button>
</div>
</td>
</tr>
</tbody>
</table>
</div>
Guidelines
| Invoice | Status | Amount |
|---|---|---|
| INV-001 | Paid | $250.00 |
| INV-002 | Paid | $150.00 |
| Team member |
|---|
| Alice Smith |
| Bob Johnson |
| Carol Williams |
| Name | Amount |
|---|---|
| Alice Johnson | $1,250.00 |
| Bob Smith | $830.00 |
| Name | Amount |
|---|---|
| Alice Johnson | $1,250.00 |
| Bob Smith | $830.00 |
| Name | Status |
|---|---|
| Alice Johnson | Paid |
| Bob Smith | Pending |
| Name | Status |
|---|---|
| Alice Johnson | Paid |
| Bob Smith | Pending |
Anatomy
div.vt-table-wrap ← Frame
├── table.vt-table
│ ├── thead > tr
│ │ ├── th.vt-table-select > .vt-checkbox ← Optional selection
│ │ ├── th[aria-sort] > button.vt-table-sort ← Sortable column
│ │ └── th.vt-table-numeric
│ └── tbody > tr(.vt-selected)
│ ├── td.vt-table-strong ← Key cell
│ ├── td > span.vt-badge ← Status
│ ├── td.vt-table-muted
│ ├── td.vt-table-numeric
│ └── td.vt-table-end > .vt-table-actions ← Row buttons
└── div.vt-table-footer ← Summary + vt-pagination
API Reference
| Class | Type | Description |
|---|---|---|
vt-table-wrap |
Base | Bordered, rounded frame around the table (and its footer); clips the header corners |
vt-table |
Base | Full-width table, Body/SM; header row on a subtle surface, a hairline between body rows, cells 12/16px |
vt-table-compact |
Size | Denser cells — 6/12px |
vt-table-striped |
Variant | Tints every other body row |
vt-table-strong |
Part | The row's key cell (invoice, name) — Label/MD |
vt-table-muted |
Part | Secondary cell text (customer, method, email) |
vt-table-numeric |
Part | Figures — right-aligned with tabular digits; on the th as well as the td |
vt-table-end |
Part | Right-aligned cell without the figures (the actions column) |
vt-table-select |
Part | Checkbox column (48px) — a vt-checkbox in th and td |
vt-table-actions |
Part | Row of vt-btn vt-btn-ghost vt-btn-icon vt-btn-sm, 4px apart, at the end of the cell |
vt-table-sort |
Part | Button inside a sortable th — label and a 16px arrow; darkens on hover |
th[aria-sort="ascending|descending"] |
State | The sorted column — its sort button reads in the primary color |
tr.vt-selected |
State | Selected row — a subtle tint; the separators stay |
vt-table-footer |
Part | Last strip of the wrapper — a summary and a vt-pagination, 12/16px, a hairline above |
Accessibility
| Feature | Details |
|---|---|
| Semantics | Use table, thead, tbody, th, td elements for proper table structure |
| Headers | Use scope="col" on column headers and scope="row" on row headers |
| Caption | Add caption element or aria-label to describe the table content |
| Sortable | The th of a sortable column carries aria-sort="ascending/descending/none"; the sort control is a button inside it |
| Row actions | Icon-only buttons need an aria-label (View, Edit, Delete) |
Built with