Data Table Row

GitHub

Table row that can optionally behave as a navigable link.

Installation

bash
pnpm dlx shadcn@latest add @cs/data-table-row

Usage

tsx
import { DataTableRow } from "@/components/cs/data-table-row"
tsx
<DataTableRow href={`/orders/${order.id}`}>
  <td>{order.number}</td>
</DataTableRow>

API Reference

DataTableRow

Renders a table row that can optionally behave as a navigable link.

Props

NameTypeDefaultDescription
hrefstring--
link(props: { children: ReactNode; href: string; className?: string }) => ReactNode--

Dependencies