Data Display · ui · 5K
A table in the Finder list style: column titles in the chrome face over a 1px rule, the sorted column underlined via aria-sort, rows at the list row height with no lines, and a selected row that inverts only its first text cell.
Same parts and data-slot attributes as shadcn/ui's Table. Set data-state="selected" on a TableRow to select it. Bare strings and numbers in a TableCell are wrapped in a data-slot="table-cell-text" span so only the text inverts; wrap your own text in such a span when a cell holds an icon or other elements.
pnpm dlx shadcn@latest add @s7ui/tableThis example also uses @s7ui/icons.
| Name | Size | Kind | Last Modified |
|---|---|---|---|
Annual Report | 48K | document | Mon, Mar 2, 1992 |
Budget 1992 | 12K | spreadsheet | Tue, Feb 18, 1992 |
Letters | — | folder | Fri, Feb 14, 1992 |
Meeting Notes | 4K | document | Mon, Mar 2, 1992 |
Price List | 8K | document | Thu, Jan 30, 1992 |
| Total | 72K | ||