Components
Table Row
A re-export of the Table row primitive for standalone composition.
Installation
$ npx veil-ui@latest add table-rowUsage
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
| Plan | Seats |
|---|---|
| Team | 8 |
Selected row
| Member | Role |
|---|---|
| Mira Chen | Owner |
| Ada Lovelace | Admin |
| Grace Hopper | Member |
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
alttext; icons used decoratively arearia-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>