TableNew

A composable data table with semantic markup and a per-row hover highlight that dims into the active row.

Interaction Type

Hover a row to highlight it; cell text sharpens to full contrast on the active row.

Props

Options you can pass to customize this component.

Prop
Type
Description
className
string

Additional CSS classes on the <table> element.

Installation

npx shadcn@latest addhttps://ui.nexvyn.dev/r/table.json

How to use

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

export function Demo() {
  return (
    <Table>
      <TableHeader>
        <TableRow>
          <TableHead>Name</TableHead>
          <TableHead>Role</TableHead>
        </TableRow>
      </TableHeader>
      <TableBody>
        <TableRow isBodyRow>
          <TableCell>Ada Lovelace</TableCell>
          <TableCell>Engineer</TableCell>
        </TableRow>
      </TableBody>
    </Table>
  )
}

Source Code

Click the code icon in the top-right corner to view the source code.

Contact

Questions or feedback? Reach out anytime.

License & Usage

  • Free for personal and commercial use
  • No attribution required
  • Cannot be resold as a standalone product
  • Anatomy/blueprint diagrams are licensed separately (CC BY-NC 4.0) and are not for commercial use
// No code loaded.
NameRoleStatus
Ada LovelaceEngineerActive
Alan TuringResearcherActive
Grace HopperAdmiralRetired
npx shadcn@latest addhttps://ui.nexvyn.dev/r/table.json