Table

Rows of data in columns, as a card's content, that scroll where they don't fit.

Installation

Examples

Default

A table is a card's content, and its head is the card's header: put it alone in a Card, as each example here sits in its frame's, and it runs edge to edge while the card clips its corners. Numbers line up in tabular-nums; right-align a numeric column with text-right on its head and its cells.

demo.tsx
NameCameraTakenSize
Golden hour.jpgCanon EOS R5Jun 1214.2 MB
Blue hour.jpgCanon EOS R5Jun 129.8 MB
Fjord.pngFujifilm X-T5Jul 321.5 MB
Harbor.jpgLeica Q3Jul 911.7 MB
Dunes.jpgSony A7 IVAug 218.4 MB

Selecting rows

A row with data-selected, true or false, is one you pick: it lights on hover, and fills when true. Other rows stay still. In a DragToggle, with a name they share, a drag across the checkboxes flips each one it passes.

select.tsx
NameEmailRole
Ana Ruizana@studio.comOwner
Leo Parkleo@studio.comEditor
Mia Chenmia@studio.comEditor
Sam Okaforsam@studio.comViewer
Ines Costaines@studio.comViewer
Theo Lindtheo@studio.comViewer

Scrolling down

Give the table a height, such as max-h-80, and its rows scroll under the head, which stays at the top.

long.tsx
FileAlbumTakenSize
IMG_4120.CR3LisbonJun 1, 20268.0 MB
IMG_4121.CR3FjordsJun 2, 202615.1 MB
IMG_4122.CR3DunesJun 3, 202622.2 MB
IMG_4123.CR3HarborJun 4, 202614.3 MB
IMG_4124.CR3NightJun 5, 202621.4 MB
IMG_4125.CR3LisbonJun 6, 202613.5 MB
IMG_4126.CR3FjordsJun 7, 202620.6 MB
IMG_4127.CR3DunesJun 8, 202612.7 MB
IMG_4128.CR3HarborJun 9, 202619.8 MB
IMG_4129.CR3NightJun 10, 202611.9 MB
IMG_4130.CR3LisbonJun 11, 202618.0 MB
IMG_4131.CR3FjordsJun 12, 202610.1 MB
IMG_4132.CR3DunesJun 13, 202617.2 MB
IMG_4133.CR3HarborJun 14, 20269.3 MB
IMG_4134.CR3NightJun 15, 202616.4 MB
IMG_4135.CR3LisbonJun 16, 20268.5 MB
IMG_4136.CR3FjordsJun 17, 202615.6 MB
IMG_4137.CR3DunesJun 18, 202622.7 MB
IMG_4138.CR3HarborJun 19, 202614.8 MB
IMG_4139.CR3NightJun 20, 202621.9 MB
IMG_4140.CR3LisbonJun 21, 202613.0 MB
IMG_4141.CR3FjordsJun 22, 202620.1 MB
IMG_4142.CR3DunesJun 23, 202612.2 MB
IMG_4143.CR3HarborJun 24, 202619.3 MB
IMG_4144.CR3NightJun 25, 202611.4 MB
IMG_4145.CR3LisbonJun 26, 202618.5 MB
IMG_4146.CR3FjordsJun 27, 202610.6 MB
IMG_4147.CR3DunesJun 28, 202617.7 MB
IMG_4148.CR3HarborJun 1, 20269.8 MB
IMG_4149.CR3NightJun 2, 202616.9 MB
IMG_4150.CR3LisbonJun 3, 20268.0 MB
IMG_4151.CR3FjordsJun 4, 202615.1 MB
IMG_4152.CR3DunesJun 5, 202622.2 MB
IMG_4153.CR3HarborJun 6, 202614.3 MB
IMG_4154.CR3NightJun 7, 202621.4 MB
IMG_4155.CR3LisbonJun 8, 202613.5 MB
IMG_4156.CR3FjordsJun 9, 202620.6 MB
IMG_4157.CR3DunesJun 10, 202612.7 MB
IMG_4158.CR3HarborJun 11, 202619.8 MB
IMG_4159.CR3NightJun 12, 202611.9 MB

Scrolling sideways

A table never wraps or stacks its columns: what doesn't fit its card scrolls sideways, fading at the edges.

scroll.tsx
FileAlbumTakenCameraLensFocal lengthApertureShutterISODimensionsSize
IMG_0412.CR3LisbonJun 12, 2026Canon EOS R5RF 24–70mm35 mmƒ/2.81/250 s1008192 × 546445.1 MB
IMG_0413.CR3LisbonJun 12, 2026Canon EOS R5RF 85mm85 mmƒ/1.21/1000 s2008192 × 546443.8 MB
IMG_0418.CR3LisbonJun 13, 2026Canon EOS R5RF 15–35mm15 mmƒ/81/60 s8008192 × 546447.6 MB
DSCF2203.RAFFjordsJul 3, 2026Fujifilm X-T5XF 23mm23 mmƒ/21/500 s1607728 × 515261.2 MB
DSCF2207.RAFFjordsJul 3, 2026Fujifilm X-T5XF 56mm56 mmƒ/1.41/2000 s1257728 × 515259.9 MB

On the page

On the page, as in a documentation page, a table sits without a card. A dark line doesn't read there, so its rows are apart by a light one, in border-light; in a card, panel, or popup, they take the divider between its sections, border-subtle.

page.tsx

Keyboard shortcuts

Every edit has a key, so you can work through a shoot without leaving the photo.

ActionKeys
CropC
Compare with the original\
Copy edits⌘C
Paste edits⌘V
Export⌘E

Anatomy

Each part's data-slot, which a theme styles, is beside it. A line runs under each row but the last: border-subtle in a container, and border-light on the page.