Skip to content

Table Components

A set of composable table components for building data tables.

Components

ComponentPurpose
TableRoot table wrapper
TableHeaderTable header row container
TableBodyTable body container
TableFooterTable footer container
TableRowTable row
TableHeadHeader cell (<th>)
TableCellBody cell (<td>)
TableCaptionTable caption
TableEmptyEmpty state display

Usage

vue
<Table>
  <TableHeader>
    <TableRow>
      <TableHead>Name</TableHead>
      <TableHead>Status</TableHead>
    </TableRow>
  </TableHeader>
  <TableBody>
    <TableRow v-for="item in items" :key="item.id">
      <TableCell>{{ item.name }}</TableCell>
      <TableCell>{{ item.status }}</TableCell>
    </TableRow>
  </TableBody>
</Table>

Source

app/components/ui/table/

Built with VitePress