Veil UI
Components

Table Cell

A re-export of the Table cell primitive for standalone composition.

Installation

$ npx veil-ui@latest add table-cell

Usage

import { Table, TableBody, TableRow } from "@/components/ui/table";
import { TableCell } from "@/components/ui/table-cell";

<Table>
  <TableBody>
    <TableRow>
      <TableCell>Total</TableCell>
      <TableCell>$750.00</TableCell>
    </TableRow>
  </TableBody>
</Table>;

Examples

Basic

Total$750.00

Status cells

InvoiceStatusAmount
INV-2041Paid$240.00
INV-2042Pending$1,120.00

API reference

The package exports table-cell along with its composable parts. It forwards standard attributes to its root element; see the examples above for the component-specific props.

Accessibility

  • Content uses semantic HTML — lists are lists, tables are tables and metadata uses a definition list.
  • Interactive elements are real buttons or links with visible focus states.
  • Images require meaningful alt text; icons used decoratively are aria-hidden.

Vue and plain HTML

This component also ships for Vue (Reka UI) and plain HTML. Install it with npx veil-ui add table-cell --framework vue or switch the framework in components.json.

<script setup lang="ts">
import { TableCell as TableCellPrimitive } from "@/components/ui/table";

const props = defineProps<{ class?: string }>();
</script>

<template>
  <TableCellPrimitive :class="props.class">
    <slot />
  </TableCellPrimitive>
</template>

On this page