Veil UI
Components

Table Row

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

Installation

$ npx veil-ui@latest add table-row

Usage

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

<Table>
  <TableHeader>
    <TableRow>
      <TableHead>Plan</TableHead>
      <TableHead>Seats</TableHead>
    </TableRow>
  </TableHeader>
  <TableBody>
    <TableRow>
      <TableCell>Team</TableCell>
      <TableCell>8</TableCell>
    </TableRow>
  </TableBody>
</Table>;

Examples

Basic

PlanSeats
Team8

Selected row

MemberRole
Mira ChenOwner
Ada LovelaceAdmin
Grace HopperMember

API reference

The package exports table-row 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-row --framework vue or switch the framework in components.json.

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

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

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

On this page