Skip to content
synccn

Table

Styled table parts that scroll on small screens.

InvoiceClientStatusAmount
INV-1042MichaelPaid$1,250.00
INV-1043RileyPending$820.00
INV-1044JaydenPaid$2,400.00
INV-1045MichaelOverdue$460.00
Total$4,930.00

Installation

$ pnpm dlx shadcn@latest add @synccn/table

First time in this project? Connect synccn with one command.

Usage

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

API reference

Generated from the component's TypeScript types, so it always matches the code.

Table

  • className
    string

    Extra classes for the root element.

Also accepts every standard <table> attribute, and forwards its ref.

TableHeader

  • className
    string

    Extra classes for the root element.

Also accepts every standard <tablesection> attribute, and forwards its ref.

TableBody

  • className
    string

    Extra classes for the root element.

Also accepts every standard <tablesection> attribute, and forwards its ref.

TableRow

  • className
    string

    Extra classes for the root element.

Also accepts every standard <tablerow> attribute, and forwards its ref.

TableHead

  • className
    string

    Extra classes for the root element.

Also accepts every standard <th> attribute, and forwards its ref.

TableCell

  • className
    string

    Extra classes for the root element.

Also accepts every standard <td> attribute, and forwards its ref.

Dependencies

Read from the component's imports when the site builds. The CLI installs all of these for you.

Helpers

npm packages

Accessibility

From the source

Read from this component's code when the site builds, so it can't drift.

No ARIA roles, key handling or motion settings in its source. It renders plain elements, so its accessibility comes from the content and labels you give it.