Data table built from columns and rows, with optional cell borders, striped rows, compact size, and a footer row. Scrolls horizontally on narrow screens.
| Item | In stock | Value |
|---|---|---|
| Paper A4 | 420 | $1,890.00 |
| Stapler | 86 | $688.00 |
| Sticky notes | 640 | $960.00 |
| Total | 1146 | $3,538.00 |
| Item | In stock | Value |
|---|---|---|
| Paper A4 | 420 | $1,890.00 |
| Stapler | 86 | $688.00 |
| Sticky notes | 640 | $960.00 |
| Total | 1146 | $3,538.00 |
| Item | In stock | Value |
|---|---|---|
| Paper A4 | 420 | $1,890.00 |
| Stapler | 86 | $688.00 |
| Sticky notes | 640 | $960.00 |
| Total | 1146 | $3,538.00 |
| Item | In stock | Value |
|---|---|---|
| Paper A4 | 420 | $1,890.00 |
| Stapler | 86 | $688.00 |
| Sticky notes | 640 | $960.00 |
| Total | 1146 | $3,538.00 |
| Item | In stock | Value |
|---|---|---|
| Paper A4 | 420 | $1,890.00 |
| Stapler | 86 | $688.00 |
| Sticky notes | 640 | $960.00 |
| Total | 1146 | $3,538.00 |
| Item | In stock | Value |
|---|---|---|
| Paper A4 | 420 | $1,890.00 |
| Stapler | 86 | $688.00 |
| Sticky notes | 640 | $960.00 |
| Total | 1146 | $3,538.00 |
| Item | In stock | Value |
|---|---|---|
| Paper A4 | 420 | $1,890.00 |
| Stapler | 86 | $688.00 |
| Sticky notes | 640 | $960.00 |
| Total | 1146 | $3,538.00 |
| Item | In stock | Value |
|---|---|---|
| Paper A4 | 420 | $1,890.00 |
| Stapler | 86 | $688.00 |
| Sticky notes | 640 | $960.00 |
| Total | 1146 | $3,538.00 |
| Item | In stock | Value |
|---|---|---|
| Paper A4 | 420 | $1,890.00 |
| Stapler | 86 | $688.00 |
| Sticky notes | 640 | $960.00 |
| Total | 1146 | $3,538.00 |
| Item | In stock | Value |
|---|---|---|
| Paper A4 | 420 | $1,890.00 |
| Stapler | 86 | $688.00 |
| Sticky notes | 640 | $960.00 |
| Total | 1146 | $3,538.00 |
| Item | In stock | Value |
|---|---|---|
| Paper A4 | 420 | $1,890.00 |
| Stapler | 86 | $688.00 |
| Sticky notes | 640 | $960.00 |
| Total | 1146 | $3,538.00 |
| Item | In stock | Value |
|---|---|---|
| Paper A4 | 420 | $1,890.00 |
| Stapler | 86 | $688.00 |
| Sticky notes | 640 | $960.00 |
| Total | 1146 | $3,538.00 |
| Item | In stock | Value |
|---|---|---|
| Paper A4 | 420 | $1,890.00 |
| Stapler | 86 | $688.00 |
| Sticky notes | 640 | $960.00 |
| Total | 1146 | $3,538.00 |
| Item | In stock | Value |
|---|---|---|
| Paper A4 | 420 | $1,890.00 |
| Stapler | 86 | $688.00 |
| Sticky notes | 640 | $960.00 |
| Total | 1146 | $3,538.00 |
| Item | In stock | Value |
|---|---|---|
| Paper A4 | 420 | $1,890.00 |
| Stapler | 86 | $688.00 |
| Sticky notes | 640 | $960.00 |
| Total | 1146 | $3,538.00 |
| Item | In stock | Value |
|---|---|---|
| Paper A4 | 420 | $1,890.00 |
| Stapler | 86 | $688.00 |
| Sticky notes | 640 | $960.00 |
| Total | 1146 | $3,538.00 |
| Item | In stock | Value |
|---|---|---|
| Paper A4 | 420 | $1,890.00 |
| Stapler | 86 | $688.00 |
| Sticky notes | 640 | $960.00 |
| Total | 1146 | $3,538.00 |
| Item | In stock | Value |
|---|---|---|
| Paper A4 | 420 | $1,890.00 |
| Stapler | 86 | $688.00 |
| Sticky notes | 640 | $960.00 |
| Total | 1146 | $3,538.00 |
| Order | Customer | Status | Total |
|---|---|---|---|
| INV-1024 | Budi Santoso | Paid | $250.00 |
| INV-1025 | Siti Aminah | Pending | $85.00 |
| INV-1026 | Dewi Lestari | Shipped | $1,200.00 |
| Order | Customer | Status | Total |
|---|---|---|---|
| INV-1024 | Budi Santoso | Paid | $250.00 |
| INV-1025 | Siti Aminah | Pending | $85.00 |
| INV-1026 | Dewi Lestari | Shipped | $1,200.00 |
<x-markas.table
caption="Stock report"
size="sm"
:columns="[
['key' => 'item', 'label' => 'Item'],
['key' => 'stock', 'label' => 'In stock', 'align' => 'right'],
['key' => 'value', 'label' => 'Value', 'align' => 'right'],
]"
:rows="[
['item' => 'Paper A4', 'stock' => 420, 'value' => '$1,890.00'],
['item' => 'Stapler', 'stock' => 86, 'value' => '$688.00'],
['item' => 'Sticky notes', 'stock' => 640, 'value' => '$960.00'],
]"
:footer="['item' => 'Total', 'stock' => 1146, 'value' => '$3,538.00']"
/><x-markas.table
caption="Stock report"
:columns="[
['key' => 'item', 'label' => 'Item'],
['key' => 'stock', 'label' => 'In stock', 'align' => 'right'],
['key' => 'value', 'label' => 'Value', 'align' => 'right'],
]"
:rows="[
['item' => 'Paper A4', 'stock' => 420, 'value' => '$1,890.00'],
['item' => 'Stapler', 'stock' => 86, 'value' => '$688.00'],
['item' => 'Sticky notes', 'stock' => 640, 'value' => '$960.00'],
]"
:footer="['item' => 'Total', 'stock' => 1146, 'value' => '$3,538.00']"
/><x-markas.table
caption="Stock report"
striped
size="sm"
:columns="[
['key' => 'item', 'label' => 'Item'],
['key' => 'stock', 'label' => 'In stock', 'align' => 'right'],
['key' => 'value', 'label' => 'Value', 'align' => 'right'],
]"
:rows="[
['item' => 'Paper A4', 'stock' => 420, 'value' => '$1,890.00'],
['item' => 'Stapler', 'stock' => 86, 'value' => '$688.00'],
['item' => 'Sticky notes', 'stock' => 640, 'value' => '$960.00'],
]"
:footer="['item' => 'Total', 'stock' => 1146, 'value' => '$3,538.00']"
/><x-markas.table
caption="Stock report"
striped
:columns="[
['key' => 'item', 'label' => 'Item'],
['key' => 'stock', 'label' => 'In stock', 'align' => 'right'],
['key' => 'value', 'label' => 'Value', 'align' => 'right'],
]"
:rows="[
['item' => 'Paper A4', 'stock' => 420, 'value' => '$1,890.00'],
['item' => 'Stapler', 'stock' => 86, 'value' => '$688.00'],
['item' => 'Sticky notes', 'stock' => 640, 'value' => '$960.00'],
]"
:footer="['item' => 'Total', 'stock' => 1146, 'value' => '$3,538.00']"
/><x-markas.table
caption="Stock report"
square
size="sm"
:columns="[
['key' => 'item', 'label' => 'Item'],
['key' => 'stock', 'label' => 'In stock', 'align' => 'right'],
['key' => 'value', 'label' => 'Value', 'align' => 'right'],
]"
:rows="[
['item' => 'Paper A4', 'stock' => 420, 'value' => '$1,890.00'],
['item' => 'Stapler', 'stock' => 86, 'value' => '$688.00'],
['item' => 'Sticky notes', 'stock' => 640, 'value' => '$960.00'],
]"
:footer="['item' => 'Total', 'stock' => 1146, 'value' => '$3,538.00']"
/><x-markas.table
caption="Stock report"
square
:columns="[
['key' => 'item', 'label' => 'Item'],
['key' => 'stock', 'label' => 'In stock', 'align' => 'right'],
['key' => 'value', 'label' => 'Value', 'align' => 'right'],
]"
:rows="[
['item' => 'Paper A4', 'stock' => 420, 'value' => '$1,890.00'],
['item' => 'Stapler', 'stock' => 86, 'value' => '$688.00'],
['item' => 'Sticky notes', 'stock' => 640, 'value' => '$960.00'],
]"
:footer="['item' => 'Total', 'stock' => 1146, 'value' => '$3,538.00']"
/><x-markas.table
caption="Stock report"
square
striped
size="sm"
:columns="[
['key' => 'item', 'label' => 'Item'],
['key' => 'stock', 'label' => 'In stock', 'align' => 'right'],
['key' => 'value', 'label' => 'Value', 'align' => 'right'],
]"
:rows="[
['item' => 'Paper A4', 'stock' => 420, 'value' => '$1,890.00'],
['item' => 'Stapler', 'stock' => 86, 'value' => '$688.00'],
['item' => 'Sticky notes', 'stock' => 640, 'value' => '$960.00'],
]"
:footer="['item' => 'Total', 'stock' => 1146, 'value' => '$3,538.00']"
/><x-markas.table
caption="Stock report"
square
striped
:columns="[
['key' => 'item', 'label' => 'Item'],
['key' => 'stock', 'label' => 'In stock', 'align' => 'right'],
['key' => 'value', 'label' => 'Value', 'align' => 'right'],
]"
:rows="[
['item' => 'Paper A4', 'stock' => 420, 'value' => '$1,890.00'],
['item' => 'Stapler', 'stock' => 86, 'value' => '$688.00'],
['item' => 'Sticky notes', 'stock' => 640, 'value' => '$960.00'],
]"
:footer="['item' => 'Total', 'stock' => 1146, 'value' => '$3,538.00']"
/><x-markas.table
caption="Stock report"
bordered
size="sm"
:columns="[
['key' => 'item', 'label' => 'Item'],
['key' => 'stock', 'label' => 'In stock', 'align' => 'right'],
['key' => 'value', 'label' => 'Value', 'align' => 'right'],
]"
:rows="[
['item' => 'Paper A4', 'stock' => 420, 'value' => '$1,890.00'],
['item' => 'Stapler', 'stock' => 86, 'value' => '$688.00'],
['item' => 'Sticky notes', 'stock' => 640, 'value' => '$960.00'],
]"
:footer="['item' => 'Total', 'stock' => 1146, 'value' => '$3,538.00']"
/><x-markas.table
caption="Stock report"
bordered
:columns="[
['key' => 'item', 'label' => 'Item'],
['key' => 'stock', 'label' => 'In stock', 'align' => 'right'],
['key' => 'value', 'label' => 'Value', 'align' => 'right'],
]"
:rows="[
['item' => 'Paper A4', 'stock' => 420, 'value' => '$1,890.00'],
['item' => 'Stapler', 'stock' => 86, 'value' => '$688.00'],
['item' => 'Sticky notes', 'stock' => 640, 'value' => '$960.00'],
]"
:footer="['item' => 'Total', 'stock' => 1146, 'value' => '$3,538.00']"
/><x-markas.table
caption="Stock report"
bordered
striped
size="sm"
:columns="[
['key' => 'item', 'label' => 'Item'],
['key' => 'stock', 'label' => 'In stock', 'align' => 'right'],
['key' => 'value', 'label' => 'Value', 'align' => 'right'],
]"
:rows="[
['item' => 'Paper A4', 'stock' => 420, 'value' => '$1,890.00'],
['item' => 'Stapler', 'stock' => 86, 'value' => '$688.00'],
['item' => 'Sticky notes', 'stock' => 640, 'value' => '$960.00'],
]"
:footer="['item' => 'Total', 'stock' => 1146, 'value' => '$3,538.00']"
/><x-markas.table
caption="Stock report"
bordered
striped
:columns="[
['key' => 'item', 'label' => 'Item'],
['key' => 'stock', 'label' => 'In stock', 'align' => 'right'],
['key' => 'value', 'label' => 'Value', 'align' => 'right'],
]"
:rows="[
['item' => 'Paper A4', 'stock' => 420, 'value' => '$1,890.00'],
['item' => 'Stapler', 'stock' => 86, 'value' => '$688.00'],
['item' => 'Sticky notes', 'stock' => 640, 'value' => '$960.00'],
]"
:footer="['item' => 'Total', 'stock' => 1146, 'value' => '$3,538.00']"
/><x-markas.table
caption="Stock report"
bordered
square
size="sm"
:columns="[
['key' => 'item', 'label' => 'Item'],
['key' => 'stock', 'label' => 'In stock', 'align' => 'right'],
['key' => 'value', 'label' => 'Value', 'align' => 'right'],
]"
:rows="[
['item' => 'Paper A4', 'stock' => 420, 'value' => '$1,890.00'],
['item' => 'Stapler', 'stock' => 86, 'value' => '$688.00'],
['item' => 'Sticky notes', 'stock' => 640, 'value' => '$960.00'],
]"
:footer="['item' => 'Total', 'stock' => 1146, 'value' => '$3,538.00']"
/><x-markas.table
caption="Stock report"
bordered
square
:columns="[
['key' => 'item', 'label' => 'Item'],
['key' => 'stock', 'label' => 'In stock', 'align' => 'right'],
['key' => 'value', 'label' => 'Value', 'align' => 'right'],
]"
:rows="[
['item' => 'Paper A4', 'stock' => 420, 'value' => '$1,890.00'],
['item' => 'Stapler', 'stock' => 86, 'value' => '$688.00'],
['item' => 'Sticky notes', 'stock' => 640, 'value' => '$960.00'],
]"
:footer="['item' => 'Total', 'stock' => 1146, 'value' => '$3,538.00']"
/><x-markas.table
caption="Stock report"
bordered
square
striped
size="sm"
:columns="[
['key' => 'item', 'label' => 'Item'],
['key' => 'stock', 'label' => 'In stock', 'align' => 'right'],
['key' => 'value', 'label' => 'Value', 'align' => 'right'],
]"
:rows="[
['item' => 'Paper A4', 'stock' => 420, 'value' => '$1,890.00'],
['item' => 'Stapler', 'stock' => 86, 'value' => '$688.00'],
['item' => 'Sticky notes', 'stock' => 640, 'value' => '$960.00'],
]"
:footer="['item' => 'Total', 'stock' => 1146, 'value' => '$3,538.00']"
/><x-markas.table
caption="Stock report"
bordered
square
striped
:columns="[
['key' => 'item', 'label' => 'Item'],
['key' => 'stock', 'label' => 'In stock', 'align' => 'right'],
['key' => 'value', 'label' => 'Value', 'align' => 'right'],
]"
:rows="[
['item' => 'Paper A4', 'stock' => 420, 'value' => '$1,890.00'],
['item' => 'Stapler', 'stock' => 86, 'value' => '$688.00'],
['item' => 'Sticky notes', 'stock' => 640, 'value' => '$960.00'],
]"
:footer="['item' => 'Total', 'stock' => 1146, 'value' => '$3,538.00']"
/>import { Table } from "@/components/markas/Table";
<Table
caption="Stock report"
size="sm"
columns={[
{ key: "item", label: "Item" },
{ key: "stock", label: "In stock", align: "right" },
{ key: "value", label: "Value", align: "right" },
]}
rows={[
{ item: "Paper A4", stock: 420, value: "$1,890.00" },
{ item: "Stapler", stock: 86, value: "$688.00" },
{ item: "Sticky notes", stock: 640, value: "$960.00" },
]}
footer={{ item: "Total", stock: 1146, value: "$3,538.00" }}
/>import { Table } from "@/components/markas/Table";
<Table
caption="Stock report"
columns={[
{ key: "item", label: "Item" },
{ key: "stock", label: "In stock", align: "right" },
{ key: "value", label: "Value", align: "right" },
]}
rows={[
{ item: "Paper A4", stock: 420, value: "$1,890.00" },
{ item: "Stapler", stock: 86, value: "$688.00" },
{ item: "Sticky notes", stock: 640, value: "$960.00" },
]}
footer={{ item: "Total", stock: 1146, value: "$3,538.00" }}
/>import { Table } from "@/components/markas/Table";
<Table
caption="Stock report"
striped
size="sm"
columns={[
{ key: "item", label: "Item" },
{ key: "stock", label: "In stock", align: "right" },
{ key: "value", label: "Value", align: "right" },
]}
rows={[
{ item: "Paper A4", stock: 420, value: "$1,890.00" },
{ item: "Stapler", stock: 86, value: "$688.00" },
{ item: "Sticky notes", stock: 640, value: "$960.00" },
]}
footer={{ item: "Total", stock: 1146, value: "$3,538.00" }}
/>import { Table } from "@/components/markas/Table";
<Table
caption="Stock report"
striped
columns={[
{ key: "item", label: "Item" },
{ key: "stock", label: "In stock", align: "right" },
{ key: "value", label: "Value", align: "right" },
]}
rows={[
{ item: "Paper A4", stock: 420, value: "$1,890.00" },
{ item: "Stapler", stock: 86, value: "$688.00" },
{ item: "Sticky notes", stock: 640, value: "$960.00" },
]}
footer={{ item: "Total", stock: 1146, value: "$3,538.00" }}
/>import { Table } from "@/components/markas/Table";
<Table
caption="Stock report"
square
size="sm"
columns={[
{ key: "item", label: "Item" },
{ key: "stock", label: "In stock", align: "right" },
{ key: "value", label: "Value", align: "right" },
]}
rows={[
{ item: "Paper A4", stock: 420, value: "$1,890.00" },
{ item: "Stapler", stock: 86, value: "$688.00" },
{ item: "Sticky notes", stock: 640, value: "$960.00" },
]}
footer={{ item: "Total", stock: 1146, value: "$3,538.00" }}
/>import { Table } from "@/components/markas/Table";
<Table
caption="Stock report"
square
columns={[
{ key: "item", label: "Item" },
{ key: "stock", label: "In stock", align: "right" },
{ key: "value", label: "Value", align: "right" },
]}
rows={[
{ item: "Paper A4", stock: 420, value: "$1,890.00" },
{ item: "Stapler", stock: 86, value: "$688.00" },
{ item: "Sticky notes", stock: 640, value: "$960.00" },
]}
footer={{ item: "Total", stock: 1146, value: "$3,538.00" }}
/>import { Table } from "@/components/markas/Table";
<Table
caption="Stock report"
square
striped
size="sm"
columns={[
{ key: "item", label: "Item" },
{ key: "stock", label: "In stock", align: "right" },
{ key: "value", label: "Value", align: "right" },
]}
rows={[
{ item: "Paper A4", stock: 420, value: "$1,890.00" },
{ item: "Stapler", stock: 86, value: "$688.00" },
{ item: "Sticky notes", stock: 640, value: "$960.00" },
]}
footer={{ item: "Total", stock: 1146, value: "$3,538.00" }}
/>import { Table } from "@/components/markas/Table";
<Table
caption="Stock report"
square
striped
columns={[
{ key: "item", label: "Item" },
{ key: "stock", label: "In stock", align: "right" },
{ key: "value", label: "Value", align: "right" },
]}
rows={[
{ item: "Paper A4", stock: 420, value: "$1,890.00" },
{ item: "Stapler", stock: 86, value: "$688.00" },
{ item: "Sticky notes", stock: 640, value: "$960.00" },
]}
footer={{ item: "Total", stock: 1146, value: "$3,538.00" }}
/>import { Table } from "@/components/markas/Table";
<Table
caption="Stock report"
bordered
size="sm"
columns={[
{ key: "item", label: "Item" },
{ key: "stock", label: "In stock", align: "right" },
{ key: "value", label: "Value", align: "right" },
]}
rows={[
{ item: "Paper A4", stock: 420, value: "$1,890.00" },
{ item: "Stapler", stock: 86, value: "$688.00" },
{ item: "Sticky notes", stock: 640, value: "$960.00" },
]}
footer={{ item: "Total", stock: 1146, value: "$3,538.00" }}
/>import { Table } from "@/components/markas/Table";
<Table
caption="Stock report"
bordered
columns={[
{ key: "item", label: "Item" },
{ key: "stock", label: "In stock", align: "right" },
{ key: "value", label: "Value", align: "right" },
]}
rows={[
{ item: "Paper A4", stock: 420, value: "$1,890.00" },
{ item: "Stapler", stock: 86, value: "$688.00" },
{ item: "Sticky notes", stock: 640, value: "$960.00" },
]}
footer={{ item: "Total", stock: 1146, value: "$3,538.00" }}
/>import { Table } from "@/components/markas/Table";
<Table
caption="Stock report"
bordered
striped
size="sm"
columns={[
{ key: "item", label: "Item" },
{ key: "stock", label: "In stock", align: "right" },
{ key: "value", label: "Value", align: "right" },
]}
rows={[
{ item: "Paper A4", stock: 420, value: "$1,890.00" },
{ item: "Stapler", stock: 86, value: "$688.00" },
{ item: "Sticky notes", stock: 640, value: "$960.00" },
]}
footer={{ item: "Total", stock: 1146, value: "$3,538.00" }}
/>import { Table } from "@/components/markas/Table";
<Table
caption="Stock report"
bordered
striped
columns={[
{ key: "item", label: "Item" },
{ key: "stock", label: "In stock", align: "right" },
{ key: "value", label: "Value", align: "right" },
]}
rows={[
{ item: "Paper A4", stock: 420, value: "$1,890.00" },
{ item: "Stapler", stock: 86, value: "$688.00" },
{ item: "Sticky notes", stock: 640, value: "$960.00" },
]}
footer={{ item: "Total", stock: 1146, value: "$3,538.00" }}
/>import { Table } from "@/components/markas/Table";
<Table
caption="Stock report"
bordered
square
size="sm"
columns={[
{ key: "item", label: "Item" },
{ key: "stock", label: "In stock", align: "right" },
{ key: "value", label: "Value", align: "right" },
]}
rows={[
{ item: "Paper A4", stock: 420, value: "$1,890.00" },
{ item: "Stapler", stock: 86, value: "$688.00" },
{ item: "Sticky notes", stock: 640, value: "$960.00" },
]}
footer={{ item: "Total", stock: 1146, value: "$3,538.00" }}
/>import { Table } from "@/components/markas/Table";
<Table
caption="Stock report"
bordered
square
columns={[
{ key: "item", label: "Item" },
{ key: "stock", label: "In stock", align: "right" },
{ key: "value", label: "Value", align: "right" },
]}
rows={[
{ item: "Paper A4", stock: 420, value: "$1,890.00" },
{ item: "Stapler", stock: 86, value: "$688.00" },
{ item: "Sticky notes", stock: 640, value: "$960.00" },
]}
footer={{ item: "Total", stock: 1146, value: "$3,538.00" }}
/>import { Table } from "@/components/markas/Table";
<Table
caption="Stock report"
bordered
square
striped
size="sm"
columns={[
{ key: "item", label: "Item" },
{ key: "stock", label: "In stock", align: "right" },
{ key: "value", label: "Value", align: "right" },
]}
rows={[
{ item: "Paper A4", stock: 420, value: "$1,890.00" },
{ item: "Stapler", stock: 86, value: "$688.00" },
{ item: "Sticky notes", stock: 640, value: "$960.00" },
]}
footer={{ item: "Total", stock: 1146, value: "$3,538.00" }}
/>import { Table } from "@/components/markas/Table";
<Table
caption="Stock report"
bordered
square
striped
columns={[
{ key: "item", label: "Item" },
{ key: "stock", label: "In stock", align: "right" },
{ key: "value", label: "Value", align: "right" },
]}
rows={[
{ item: "Paper A4", stock: 420, value: "$1,890.00" },
{ item: "Stapler", stock: 86, value: "$688.00" },
{ item: "Sticky notes", stock: 640, value: "$960.00" },
]}
footer={{ item: "Total", stock: 1146, value: "$3,538.00" }}
/>import Table from "@/components/markas/Table.vue";
<Table
caption="Stock report"
size="sm"
:columns="[
{ key: 'item', label: 'Item' },
{ key: 'stock', label: 'In stock', align: 'right' },
{ key: 'value', label: 'Value', align: 'right' },
]"
:rows="[
{ item: 'Paper A4', stock: 420, value: '$1,890.00' },
{ item: 'Stapler', stock: 86, value: '$688.00' },
{ item: 'Sticky notes', stock: 640, value: '$960.00' },
]"
:footer="{ item: 'Total', stock: 1146, value: '$3,538.00' }"
/>import Table from "@/components/markas/Table.vue";
<Table
caption="Stock report"
:columns="[
{ key: 'item', label: 'Item' },
{ key: 'stock', label: 'In stock', align: 'right' },
{ key: 'value', label: 'Value', align: 'right' },
]"
:rows="[
{ item: 'Paper A4', stock: 420, value: '$1,890.00' },
{ item: 'Stapler', stock: 86, value: '$688.00' },
{ item: 'Sticky notes', stock: 640, value: '$960.00' },
]"
:footer="{ item: 'Total', stock: 1146, value: '$3,538.00' }"
/>import Table from "@/components/markas/Table.vue";
<Table
caption="Stock report"
striped
size="sm"
:columns="[
{ key: 'item', label: 'Item' },
{ key: 'stock', label: 'In stock', align: 'right' },
{ key: 'value', label: 'Value', align: 'right' },
]"
:rows="[
{ item: 'Paper A4', stock: 420, value: '$1,890.00' },
{ item: 'Stapler', stock: 86, value: '$688.00' },
{ item: 'Sticky notes', stock: 640, value: '$960.00' },
]"
:footer="{ item: 'Total', stock: 1146, value: '$3,538.00' }"
/>import Table from "@/components/markas/Table.vue";
<Table
caption="Stock report"
striped
:columns="[
{ key: 'item', label: 'Item' },
{ key: 'stock', label: 'In stock', align: 'right' },
{ key: 'value', label: 'Value', align: 'right' },
]"
:rows="[
{ item: 'Paper A4', stock: 420, value: '$1,890.00' },
{ item: 'Stapler', stock: 86, value: '$688.00' },
{ item: 'Sticky notes', stock: 640, value: '$960.00' },
]"
:footer="{ item: 'Total', stock: 1146, value: '$3,538.00' }"
/>import Table from "@/components/markas/Table.vue";
<Table
caption="Stock report"
square
size="sm"
:columns="[
{ key: 'item', label: 'Item' },
{ key: 'stock', label: 'In stock', align: 'right' },
{ key: 'value', label: 'Value', align: 'right' },
]"
:rows="[
{ item: 'Paper A4', stock: 420, value: '$1,890.00' },
{ item: 'Stapler', stock: 86, value: '$688.00' },
{ item: 'Sticky notes', stock: 640, value: '$960.00' },
]"
:footer="{ item: 'Total', stock: 1146, value: '$3,538.00' }"
/>import Table from "@/components/markas/Table.vue";
<Table
caption="Stock report"
square
:columns="[
{ key: 'item', label: 'Item' },
{ key: 'stock', label: 'In stock', align: 'right' },
{ key: 'value', label: 'Value', align: 'right' },
]"
:rows="[
{ item: 'Paper A4', stock: 420, value: '$1,890.00' },
{ item: 'Stapler', stock: 86, value: '$688.00' },
{ item: 'Sticky notes', stock: 640, value: '$960.00' },
]"
:footer="{ item: 'Total', stock: 1146, value: '$3,538.00' }"
/>import Table from "@/components/markas/Table.vue";
<Table
caption="Stock report"
square
striped
size="sm"
:columns="[
{ key: 'item', label: 'Item' },
{ key: 'stock', label: 'In stock', align: 'right' },
{ key: 'value', label: 'Value', align: 'right' },
]"
:rows="[
{ item: 'Paper A4', stock: 420, value: '$1,890.00' },
{ item: 'Stapler', stock: 86, value: '$688.00' },
{ item: 'Sticky notes', stock: 640, value: '$960.00' },
]"
:footer="{ item: 'Total', stock: 1146, value: '$3,538.00' }"
/>import Table from "@/components/markas/Table.vue";
<Table
caption="Stock report"
square
striped
:columns="[
{ key: 'item', label: 'Item' },
{ key: 'stock', label: 'In stock', align: 'right' },
{ key: 'value', label: 'Value', align: 'right' },
]"
:rows="[
{ item: 'Paper A4', stock: 420, value: '$1,890.00' },
{ item: 'Stapler', stock: 86, value: '$688.00' },
{ item: 'Sticky notes', stock: 640, value: '$960.00' },
]"
:footer="{ item: 'Total', stock: 1146, value: '$3,538.00' }"
/>import Table from "@/components/markas/Table.vue";
<Table
caption="Stock report"
bordered
size="sm"
:columns="[
{ key: 'item', label: 'Item' },
{ key: 'stock', label: 'In stock', align: 'right' },
{ key: 'value', label: 'Value', align: 'right' },
]"
:rows="[
{ item: 'Paper A4', stock: 420, value: '$1,890.00' },
{ item: 'Stapler', stock: 86, value: '$688.00' },
{ item: 'Sticky notes', stock: 640, value: '$960.00' },
]"
:footer="{ item: 'Total', stock: 1146, value: '$3,538.00' }"
/>import Table from "@/components/markas/Table.vue";
<Table
caption="Stock report"
bordered
:columns="[
{ key: 'item', label: 'Item' },
{ key: 'stock', label: 'In stock', align: 'right' },
{ key: 'value', label: 'Value', align: 'right' },
]"
:rows="[
{ item: 'Paper A4', stock: 420, value: '$1,890.00' },
{ item: 'Stapler', stock: 86, value: '$688.00' },
{ item: 'Sticky notes', stock: 640, value: '$960.00' },
]"
:footer="{ item: 'Total', stock: 1146, value: '$3,538.00' }"
/>import Table from "@/components/markas/Table.vue";
<Table
caption="Stock report"
bordered
striped
size="sm"
:columns="[
{ key: 'item', label: 'Item' },
{ key: 'stock', label: 'In stock', align: 'right' },
{ key: 'value', label: 'Value', align: 'right' },
]"
:rows="[
{ item: 'Paper A4', stock: 420, value: '$1,890.00' },
{ item: 'Stapler', stock: 86, value: '$688.00' },
{ item: 'Sticky notes', stock: 640, value: '$960.00' },
]"
:footer="{ item: 'Total', stock: 1146, value: '$3,538.00' }"
/>import Table from "@/components/markas/Table.vue";
<Table
caption="Stock report"
bordered
striped
:columns="[
{ key: 'item', label: 'Item' },
{ key: 'stock', label: 'In stock', align: 'right' },
{ key: 'value', label: 'Value', align: 'right' },
]"
:rows="[
{ item: 'Paper A4', stock: 420, value: '$1,890.00' },
{ item: 'Stapler', stock: 86, value: '$688.00' },
{ item: 'Sticky notes', stock: 640, value: '$960.00' },
]"
:footer="{ item: 'Total', stock: 1146, value: '$3,538.00' }"
/>import Table from "@/components/markas/Table.vue";
<Table
caption="Stock report"
bordered
square
size="sm"
:columns="[
{ key: 'item', label: 'Item' },
{ key: 'stock', label: 'In stock', align: 'right' },
{ key: 'value', label: 'Value', align: 'right' },
]"
:rows="[
{ item: 'Paper A4', stock: 420, value: '$1,890.00' },
{ item: 'Stapler', stock: 86, value: '$688.00' },
{ item: 'Sticky notes', stock: 640, value: '$960.00' },
]"
:footer="{ item: 'Total', stock: 1146, value: '$3,538.00' }"
/>import Table from "@/components/markas/Table.vue";
<Table
caption="Stock report"
bordered
square
:columns="[
{ key: 'item', label: 'Item' },
{ key: 'stock', label: 'In stock', align: 'right' },
{ key: 'value', label: 'Value', align: 'right' },
]"
:rows="[
{ item: 'Paper A4', stock: 420, value: '$1,890.00' },
{ item: 'Stapler', stock: 86, value: '$688.00' },
{ item: 'Sticky notes', stock: 640, value: '$960.00' },
]"
:footer="{ item: 'Total', stock: 1146, value: '$3,538.00' }"
/>import Table from "@/components/markas/Table.vue";
<Table
caption="Stock report"
bordered
square
striped
size="sm"
:columns="[
{ key: 'item', label: 'Item' },
{ key: 'stock', label: 'In stock', align: 'right' },
{ key: 'value', label: 'Value', align: 'right' },
]"
:rows="[
{ item: 'Paper A4', stock: 420, value: '$1,890.00' },
{ item: 'Stapler', stock: 86, value: '$688.00' },
{ item: 'Sticky notes', stock: 640, value: '$960.00' },
]"
:footer="{ item: 'Total', stock: 1146, value: '$3,538.00' }"
/>import Table from "@/components/markas/Table.vue";
<Table
caption="Stock report"
bordered
square
striped
:columns="[
{ key: 'item', label: 'Item' },
{ key: 'stock', label: 'In stock', align: 'right' },
{ key: 'value', label: 'Value', align: 'right' },
]"
:rows="[
{ item: 'Paper A4', stock: 420, value: '$1,890.00' },
{ item: 'Stapler', stock: 86, value: '$688.00' },
{ item: 'Sticky notes', stock: 640, value: '$960.00' },
]"
:footer="{ item: 'Total', stock: 1146, value: '$3,538.00' }"
/>Examples
Status badges
| Invoice | Customer | Status | Amount |
|---|---|---|---|
| INV-1024 | Budi Santoso | Paid | $250.00 |
| INV-1025 | Siti Aminah | Pending | $85.00 |
| INV-1026 | John Carter | Overdue | $1,200.00 |
| INV-1027 | Dewi Lestari | Draft | $40.00 |
| Invoice | Customer | Status | Amount |
|---|---|---|---|
| INV-1024 | Budi Santoso | Paid | $250.00 |
| INV-1025 | Siti Aminah | Pending | $85.00 |
| INV-1026 | John Carter | Overdue | $1,200.00 |
| INV-1027 | Dewi Lestari | Draft | $40.00 |
| Invoice | Customer | Status | Amount |
|---|---|---|---|
| INV-1024 | Budi Santoso | Paid | $250.00 |
| INV-1025 | Siti Aminah | Pending | $85.00 |
| INV-1026 | John Carter | Overdue | $1,200.00 |
| INV-1027 | Dewi Lestari | Draft | $40.00 |
| Invoice | Customer | Status | Amount |
|---|---|---|---|
| INV-1024 | Budi Santoso | Paid | $250.00 |
| INV-1025 | Siti Aminah | Pending | $85.00 |
| INV-1026 | John Carter | Overdue | $1,200.00 |
| INV-1027 | Dewi Lestari | Draft | $40.00 |
| Invoice | Customer | Status | Amount |
|---|---|---|---|
| INV-1024 | Budi Santoso | Paid | $250.00 |
| INV-1025 | Siti Aminah | Pending | $85.00 |
| INV-1026 | John Carter | Overdue | $1,200.00 |
| INV-1027 | Dewi Lestari | Draft | $40.00 |
Numeric columns
| Product | Units | Price | Revenue |
|---|---|---|---|
| Wireless mouse | 1240 | $24.00 | $29,760.00 |
| USB-C hub | 860 | $39.00 | $33,540.00 |
| Laptop stand | 312 | $59.00 | $18,408.00 |
| Desk mat | 95 | $18.50 | $1,757.50 |
| Product | Units | Price | Revenue |
|---|---|---|---|
| Wireless mouse | 1240 | $24.00 | $29,760.00 |
| USB-C hub | 860 | $39.00 | $33,540.00 |
| Laptop stand | 312 | $59.00 | $18,408.00 |
| Desk mat | 95 | $18.50 | $1,757.50 |
| Product | Units | Price | Revenue |
|---|---|---|---|
| Wireless mouse | 1240 | $24.00 | $29,760.00 |
| USB-C hub | 860 | $39.00 | $33,540.00 |
| Laptop stand | 312 | $59.00 | $18,408.00 |
| Desk mat | 95 | $18.50 | $1,757.50 |
| Product | Units | Price | Revenue |
|---|---|---|---|
| Wireless mouse | 1240 | $24.00 | $29,760.00 |
| USB-C hub | 860 | $39.00 | $33,540.00 |
| Laptop stand | 312 | $59.00 | $18,408.00 |
| Desk mat | 95 | $18.50 | $1,757.50 |
| Product | Units | Price | Revenue |
|---|---|---|---|
| Wireless mouse | 1240 | $24.00 | $29,760.00 |
| USB-C hub | 860 | $39.00 | $33,540.00 |
| Laptop stand | 312 | $59.00 | $18,408.00 |
| Desk mat | 95 | $18.50 | $1,757.50 |
Visible caption
| Name | Role | Joined |
|---|---|---|
| Sarah Miller | Owner | Jan 12, 2025 |
| Budi Santoso | Editor | Mar 3, 2025 |
| Siti Aminah | Viewer | Aug 21, 2025 |
| Name | Role | Joined |
|---|---|---|
| Sarah Miller | Owner | Jan 12, 2025 |
| Budi Santoso | Editor | Mar 3, 2025 |
| Siti Aminah | Viewer | Aug 21, 2025 |
| Name | Role | Joined |
|---|---|---|
| Sarah Miller | Owner | Jan 12, 2025 |
| Budi Santoso | Editor | Mar 3, 2025 |
| Siti Aminah | Viewer | Aug 21, 2025 |
| Name | Role | Joined |
|---|---|---|
| Sarah Miller | Owner | Jan 12, 2025 |
| Budi Santoso | Editor | Mar 3, 2025 |
| Siti Aminah | Viewer | Aug 21, 2025 |
| Name | Role | Joined |
|---|---|---|
| Sarah Miller | Owner | Jan 12, 2025 |
| Budi Santoso | Editor | Mar 3, 2025 |
| Siti Aminah | Viewer | Aug 21, 2025 |
Empty state
| Invoice | Customer | Status | Amount |
|---|
No invoices yet
Invoices you create will show up here.
| Invoice | Customer | Status | Amount |
|---|
No invoices yet
Invoices you create will show up here.
| Invoice | Customer | Status | Amount |
|---|
No invoices yet
Invoices you create will show up here.
| Invoice | Customer | Status | Amount |
|---|
No invoices yet
Invoices you create will show up here.
| Invoice | Customer | Status | Amount |
|---|
No invoices yet
Invoices you create will show up here.
Bordered grid with totals
| Item | In stock | Reserved | Value |
|---|---|---|---|
| Paper A4 80gsm | 420 | 60 | $1,890.00 |
| Ballpoint pen | 1,150 | 200 | $575.00 |
| Stapler | 86 | 12 | $688.00 |
| Sticky notes | 640 | 90 | $960.00 |
| Whiteboard marker | 310 | 45 | $465.00 |
| Total | 2,606 | 407 | $4,578.00 |
| Item | In stock | Reserved | Value |
|---|---|---|---|
| Paper A4 80gsm | 420 | 60 | $1,890.00 |
| Ballpoint pen | 1,150 | 200 | $575.00 |
| Stapler | 86 | 12 | $688.00 |
| Sticky notes | 640 | 90 | $960.00 |
| Whiteboard marker | 310 | 45 | $465.00 |
| Total | 2,606 | 407 | $4,578.00 |
| Item | In stock | Reserved | Value |
|---|---|---|---|
| Paper A4 80gsm | 420 | 60 | $1,890.00 |
| Ballpoint pen | 1,150 | 200 | $575.00 |
| Stapler | 86 | 12 | $688.00 |
| Sticky notes | 640 | 90 | $960.00 |
| Whiteboard marker | 310 | 45 | $465.00 |
| Total | 2,606 | 407 | $4,578.00 |
| Item | In stock | Reserved | Value |
|---|---|---|---|
| Paper A4 80gsm | 420 | 60 | $1,890.00 |
| Ballpoint pen | 1,150 | 200 | $575.00 |
| Stapler | 86 | 12 | $688.00 |
| Sticky notes | 640 | 90 | $960.00 |
| Whiteboard marker | 310 | 45 | $465.00 |
| Total | 2,606 | 407 | $4,578.00 |
| Item | In stock | Reserved | Value |
|---|---|---|---|
| Paper A4 80gsm | 420 | 60 | $1,890.00 |
| Ballpoint pen | 1,150 | 200 | $575.00 |
| Stapler | 86 | 12 | $688.00 |
| Sticky notes | 640 | 90 | $960.00 |
| Whiteboard marker | 310 | 45 | $465.00 |
| Total | 2,606 | 407 | $4,578.00 |
Striped rows
| Name | Role | Location |
|---|---|---|
| Rani Wulandari | Designer | Jakarta |
| Budi Santoso | Engineer | Bandung |
| Siti Aminah | Product manager | Surabaya |
| Agus Pratama | Engineer | Yogyakarta |
| Dewi Lestari | Support | Denpasar |
| Name | Role | Location |
|---|---|---|
| Rani Wulandari | Designer | Jakarta |
| Budi Santoso | Engineer | Bandung |
| Siti Aminah | Product manager | Surabaya |
| Agus Pratama | Engineer | Yogyakarta |
| Dewi Lestari | Support | Denpasar |
| Name | Role | Location |
|---|---|---|
| Rani Wulandari | Designer | Jakarta |
| Budi Santoso | Engineer | Bandung |
| Siti Aminah | Product manager | Surabaya |
| Agus Pratama | Engineer | Yogyakarta |
| Dewi Lestari | Support | Denpasar |
| Name | Role | Location |
|---|---|---|
| Rani Wulandari | Designer | Jakarta |
| Budi Santoso | Engineer | Bandung |
| Siti Aminah | Product manager | Surabaya |
| Agus Pratama | Engineer | Yogyakarta |
| Dewi Lestari | Support | Denpasar |
| Name | Role | Location |
|---|---|---|
| Rani Wulandari | Designer | Jakarta |
| Budi Santoso | Engineer | Bandung |
| Siti Aminah | Product manager | Surabaya |
| Agus Pratama | Engineer | Yogyakarta |
| Dewi Lestari | Support | Denpasar |
Compact
| Date | Invoice | Customer | Method | Amount |
|---|---|---|---|---|
| Nov 1 | INV-2041 | Budi Santoso | Card | $120.00 |
| Nov 1 | INV-2042 | Siti Aminah | Transfer | $86.50 |
| Nov 2 | INV-2043 | Agus Pratama | Card | $42.00 |
| Nov 3 | INV-2044 | Dewi Lestari | Wallet | $310.00 |
| Nov 4 | INV-2045 | Rani Wulandari | Transfer | $58.25 |
| Nov 4 | INV-2046 | Joko Widodo | Card | $19.90 |
| Date | Invoice | Customer | Method | Amount |
|---|---|---|---|---|
| Nov 1 | INV-2041 | Budi Santoso | Card | $120.00 |
| Nov 1 | INV-2042 | Siti Aminah | Transfer | $86.50 |
| Nov 2 | INV-2043 | Agus Pratama | Card | $42.00 |
| Nov 3 | INV-2044 | Dewi Lestari | Wallet | $310.00 |
| Nov 4 | INV-2045 | Rani Wulandari | Transfer | $58.25 |
| Nov 4 | INV-2046 | Joko Widodo | Card | $19.90 |
| Date | Invoice | Customer | Method | Amount |
|---|---|---|---|---|
| Nov 1 | INV-2041 | Budi Santoso | Card | $120.00 |
| Nov 1 | INV-2042 | Siti Aminah | Transfer | $86.50 |
| Nov 2 | INV-2043 | Agus Pratama | Card | $42.00 |
| Nov 3 | INV-2044 | Dewi Lestari | Wallet | $310.00 |
| Nov 4 | INV-2045 | Rani Wulandari | Transfer | $58.25 |
| Nov 4 | INV-2046 | Joko Widodo | Card | $19.90 |
| Date | Invoice | Customer | Method | Amount |
|---|---|---|---|---|
| Nov 1 | INV-2041 | Budi Santoso | Card | $120.00 |
| Nov 1 | INV-2042 | Siti Aminah | Transfer | $86.50 |
| Nov 2 | INV-2043 | Agus Pratama | Card | $42.00 |
| Nov 3 | INV-2044 | Dewi Lestari | Wallet | $310.00 |
| Nov 4 | INV-2045 | Rani Wulandari | Transfer | $58.25 |
| Nov 4 | INV-2046 | Joko Widodo | Card | $19.90 |
| Date | Invoice | Customer | Method | Amount |
|---|---|---|---|---|
| Nov 1 | INV-2041 | Budi Santoso | Card | $120.00 |
| Nov 1 | INV-2042 | Siti Aminah | Transfer | $86.50 |
| Nov 2 | INV-2043 | Agus Pratama | Card | $42.00 |
| Nov 3 | INV-2044 | Dewi Lestari | Wallet | $310.00 |
| Nov 4 | INV-2045 | Rani Wulandari | Transfer | $58.25 |
| Nov 4 | INV-2046 | Joko Widodo | Card | $19.90 |
Installation
npx markasui@latest add tablepnpm dlx markasui@latest add tableyarn dlx markasui@latest add tablebunx --bun markasui@latest add table- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
resources/views/components/markas/table.blade.php.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/Table.tsx.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/Table.vue.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/lib/components/markas/Table.svelte.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/Table.astro.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/app/markas/table.component.ts.
Usage
<x-markas.table
caption="Recent orders"
:columns="[
['key' => 'code', 'label' => 'Order'],
['key' => 'customer', 'label' => 'Customer'],
['key' => 'total', 'label' => 'Total', 'align' => 'right'],
]"
:rows="$orders->map(fn ($o) => ['code' => $o->code, 'customer' => $o->customer, 'total' => $o->total_label])->all()"
/>import { Table } from "@/components/markas/Table";
<Table
caption="Recent orders"
columns={[
{ key: "code", label: "Order" },
{ key: "status", label: "Status" },
{ key: "total", label: "Total", align: "right" },
]}
rows={orders}
renderCell={(row, key) =>
key === "status" ? <Badge>{row.status}</Badge> : undefined
}
/>;<template>
<Table
caption="Recent orders"
:columns="[
{ key: 'code', label: 'Order' },
{ key: 'status', label: 'Status' },
{ key: 'total', label: 'Total', align: 'right' },
]"
:rows="orders"
>
<template #cell-status="{ row }">
<Badge>{{ row.status }}</Badge>
</template>
</Table>
</template><script lang="ts">
import Badge from "$lib/components/markas/Badge.svelte";
import Table, { type TableRow } from "$lib/components/markas/Table.svelte";
const columns = [
{ key: "code", label: "Order" },
{ key: "status", label: "Status" },
{ key: "total", label: "Total", align: "right" as const },
];
</script>
{#snippet status(row: TableRow)}
<Badge>{row.status}</Badge>
{/snippet}
<Table caption="Recent orders" {columns} rows={orders} cells={{ status }} />cells maps a column key to a snippet that receives the row. Other columns show the plain value.
---
import Badge from "@/components/markas/Badge.astro";
import Table, { type TableRow } from "@/components/markas/Table.astro";
---
<Table caption="Recent orders" columns={columns} rows={orders}>
{
(row: TableRow, key: string) =>
key === "status" && <Badge>{row.status}</Badge>
}
</Table>The function child runs for every cell. Return nothing to keep the plain value.
import { Component } from "@angular/core";
import { Badge } from "./markas/badge.component";
import { Table, type TableColumn } from "./markas/table.component";
@Component({
selector: "app-orders",
imports: [Badge, Table],
template: `
<div
markas-table
caption="Recent orders"
[columns]="columns"
[rows]="orders"
[cells]="{ status: statusCell }"
></div>
<ng-template #statusCell let-row>
<span markas-badge>{{ row.status }}</span>
</ng-template>
`,
})
export class Orders {
columns: TableColumn[] = [
{ key: "code", label: "Order" },
{ key: "status", label: "Status" },
{ key: "total", label: "Total", align: "right" },
];
orders = [{ code: "INV-1024", status: "Paid", total: "$250.00" }];
}cells maps a column key to an ng-template that receives the row as let-row.
- Blade only shows escaped text values. For cells with other components, write the table by hand with the same classes, or prepare the string in the controller.
- A
renderCellthat returnsundefinedfalls back to the plain text value, so only handle the columns that need it. - Add
show-caption(Blade, Vue) orshowCaption(React) to show the caption above the table. - Cells do not wrap (
whitespace-nowrap). On narrow screens the table scrolls horizontally inside its wrapper. - Set
rowKey(React and Vue, such asrowKey="id") to a field with a unique id per row when rows can be sorted, filtered, or removed. WithoutrowKey, the key is the row index. Blade does not need it. - The region is named by
label, thencaption, then “Table”. Setlabelorcaptionin your site’s language. - Add
borderedfor a classic grid with lines around every cell,stripedfor alternating row backgrounds, andsize="sm"for tighter padding with 13px text in dense tables. - Pass totals through
footer, an object (a PHP array in Blade) keyed by column, such as:footer="['item' => 'Total', 'value' => '$4,578in Blade or.00']" footer={{ item: "Total", value: "$4,578in React. It renders one row in.00" }} tfootwith the same alignment as each column.
Props
| Name | Type | Default | Description |
|---|---|---|---|
columns | { key: string, label: string, align?: 'left' | 'center' | 'right' }[] | [] | List of columns. key points to a property on each row. |
rows | Record<string, string | number>[] | [] | Row data. A PHP array in Blade. |
caption | string | - | Table title in the caption element. Visually hidden unless show-caption is set. |
showCaption | boolean | false | Show the caption above the table. |
label | string | caption or Table | aria-label of the scrollable region wrapper. Falls back to caption, then to Table. |
bordered | boolean | false | Draw lines around every cell, including the header, for a classic grid look. The header gets a stronger bottom line. |
square | boolean | false | Square corners with no radius, like a classic spreadsheet table. |
striped | boolean | false | Give even rows a subtle background. |
size | 'sm' | 'md' | md | Cell padding. sm uses tighter padding and 13px text for dense data. |
footer | Record<string, string | number> | - | Optional single footer row in tfoot, with a value per column key, such as totals. Missing keys render as empty cells. |
rowKey | string | - | Name of the field holding a unique id per row (such as id), used as the React and Vue key so rows do not get mixed up when data is sorted or removed. Without it the key is the index. Not used in Blade. |
renderCell / slot cell-<key> / cells | (row, key) => ReactNode · slot { row } · Record<string, Snippet | TemplateRef> | - | Custom cell content. React uses renderCell, Vue the named slot cell-<key>, Svelte and Angular a cells map of snippets or ng-templates per column key, Astro a function child (row, key) that returns markup or nothing. Blade is text only. |
Accessibility
- The wrapper uses role region, an aria-label, and tabindex 0, so a clipped table can be focused and scrolled with the arrow keys.
- Column headers use th with scope col.
- The caption is still read by screen readers when visually hidden.
- The footer row is rendered inside tfoot, so screen readers announce it as the table footer.
Related components
More data components with the same classes in every framework.
- AvatarRound profile photo in three sizes, with name initials as a fallback when the image is empty or fails to load.
- CardCard that groups content with an optional title, description, body, and footer.
- CarouselRow of slides built on CSS scroll snap, with previous and next buttons, optional dots, and arrow key navigation. No autoplay.
- Code BlockMonospace code block with an optional file name, line numbers, and a copy button. Plain text, no syntax highlighting.
- KbdKeycap for keyboard shortcuts using the native kbd element, in two sizes, with key combinations rendered as separate keys.
- Scroll AreaScrollable container with a thin token-styled scrollbar that keyboard users can focus and scroll. No JavaScript.