Skip to content
HomeCobalt

Data table

Lists records with the same fields, as many as a server holds: it renders only the rows in view, sorts and filters through each column's header, selects rows to act on together, and turns into a two-line list on a phone.

Examples

Sixty funds sorted in memory; header menus move and hide columns, and Columns brings them back. On a phone the funds flow in the page 25 at a time, under a pager.

60 funds

1Northgate Credit OpportunitiesUnited States$42.0B−2.5%Jan 1, 2026creditdistressed
2Ashbury Small Cap ValueLuxembourg$29.0B+1.2%Jun 12, 2026equityvalue
3Kestrel Global EquityIreland$22.1B+4.9%Feb 23, 2026equityglobal
4Corran MacroCayman Islands$17.9B−0.4%Jul 6, 2026macro
5Brightwater Municipal IncomeUnited Kingdom$15.0B+3.3%Mar 17, 2026incomemunicipal
6Halden Global EquityJersey$12.9B−2.0%Aug 28, 2026equityglobal
7Redfern MacroUnited States$11.4B+1.7%Apr 11, 2026macro
8Marlow Municipal IncomeLuxembourg$10.1B+5.4%Sep 22, 2026incomemunicipal
9Wexley Credit OpportunitiesIreland$9.1B+0.1%May 5, 2026creditdistressed
10Elmstead Small Cap ValueCayman Islands$8.3B+3.8%Jan 16, 2026equityvalue
11Larkspur Municipal IncomeUnited Kingdom$7.6B−1.5%Jun 27, 2026incomemunicipal
12Calder Credit OpportunitiesJersey$7.1B+2.2%Feb 10, 2026creditdistressed
13Northgate Small Cap ValueUnited States$6.6B+5.9%Jul 21, 2026equityvalue
14Ashbury Global EquityLuxembourg$6.1B+0.6%Mar 4, 2026equityglobal
15Kestrel MacroIreland$5.8B+4.3%Aug 15, 2026macro
16Corran Small Cap ValueCayman Islands$5.4B−1.0%Apr 26, 2026equityvalue
17Brightwater Global EquityUnited Kingdom$5.1B+2.7%Sep 9, 2026equityglobal
18Halden MacroJersey$4.9B+6.4%May 20, 2026macro
19Redfern Municipal IncomeUnited States$4.6B+1.1%Jan 3, 2026incomemunicipal
20Marlow Credit OpportunitiesLuxembourg$4.4B+4.8%Jun 14, 2026creditdistressed
A block that did not loadThe table opens at row 196, where the first block ends; the second block fails on its first try, and a notice over the last row says which rows did not load, with a retry, while the rows above stay.

Loading
Filtered columnThe Room column is filtered, and its menu holds the same option list as a filter pill, with a count per room.
BK-48204Omar HaddadHarbour suite5$2,100.00Nov 7, 2026
BK-48208Priya RamanHarbour suite2$840.00Nov 15, 2026
BK-48212Daniel MensahHarbour suite5$2,100.00Nov 23, 2026
BK-48216Amara OkaforHarbour suite3$1,260.00Nov 3, 2026
BK-48220Kenji MoritaHarbour suite6$2,520.00Nov 11, 2026
BK-48224Clara DuboisHarbour suite3$1,260.00Nov 19, 2026
BK-48228Tomás IbarraHarbour suite1$420.00Nov 27, 2026
BK-48232Elena PetrovaHarbour suite4$1,680.00Nov 7, 2026
BK-48236Lukas BrandtHarbour suite1$420.00Nov 15, 2026
BK-48240Sofia MarchettiHarbour suite5$2,100.00Nov 23, 2026
Nothing matchesThe Room filter leaves no booking this month, so the table says nothing matches and offers to clear the filters, at the height the rows will take.

0 bookings

No November bookings in these rooms
Reloading rowsRows already shown stay, dimmed and out of reach after 250ms, while the next week loads; a week that does not load is said inside the table, with a retry.
BK-48201Amara OkaforGarden double1$180.00Oct 19, 2026
BK-48204Daniel MensahFamily room4$960.00Oct 19, 2026
BK-48207Priya RamanCorner king1$260.00Oct 19, 2026
BK-48210Omar HaddadLoft studio4$840.00Oct 20, 2026
BK-48213Hanna LindqvistCourtyard twin1$150.00Oct 20, 2026
BK-48216Mateo RojasHarbour suite4$1,680.00Oct 20, 2026
BK-48219Sofia MarchettiGarden double1$180.00Oct 21, 2026
BK-48222Lukas BrandtFamily room4$960.00Oct 21, 2026
BK-48225Elena PetrovaCorner king1$260.00Oct 21, 2026
BK-48228Tomás IbarraLoft studio4$840.00Oct 22, 2026
BK-48231Clara DuboisCourtyard twin1$150.00Oct 22, 2026
BK-48234Kenji MoritaHarbour suite4$1,680.00Oct 22, 2026
Selected rowsPick bookings with their checkboxes, a range with Shift, and act on them from the bar that takes the toolbar's place.

24 November bookings

Select
BK-48201Amara OkaforGarden double1$180.00Nov 1, 2026
BK-48215Kenji MoritaCourtyard twin5$750.00Nov 1, 2026
BK-48202Daniel MensahLoft studio6$1,260.00Nov 3, 2026
BK-48216Amara OkaforHarbour suite4$1,680.00Nov 3, 2026
BK-48203Priya RamanCourtyard twin5$750.00Nov 5, 2026
BK-48217Elena PetrovaGarden double3$540.00Nov 5, 2026
BK-48204Clara DuboisHarbour suite4$1,680.00Nov 7, 2026
BK-48218Tomás IbarraLoft studio2$420.00Nov 7, 2026
BK-48205Kenji MoritaGarden double3$540.00Nov 9, 2026
BK-48219Mateo RojasCourtyard twin1$150.00Nov 9, 2026
BK-48206Amara OkaforLoft studio2$420.00Nov 11, 2026
BK-48220Kenji MoritaHarbour suite6$2,520.00Nov 11, 2026
BK-48207Daniel MensahCourtyard twin1$150.00Nov 13, 2026
BK-48221Lukas BrandtGarden double5$900.00Nov 13, 2026
BK-48208Priya RamanHarbour suite6$2,520.00Nov 15, 2026
BK-48222Elena PetrovaLoft studio4$840.00Nov 15, 2026
BK-48209Mateo RojasGarden double5$900.00Nov 17, 2026
BK-48223Tomás IbarraCourtyard twin3$450.00Nov 17, 2026
A slow first loadThe first answer hangs: placeholders hold the rows' places, and after 8 seconds the notice over the last row says the load is taking longer than usual, with a retry that asks again.
Loading
Rows from a serverTen thousand rows, fetched 200 at a time as you scroll; a new order keeps the old rows, dimmed, until its first block lands, and coming back to the page finds the rows where you left them.

Loading
In a sectionA table in a card under a section heading.

Arriving this week

BK-48201Amara OkaforHarbour suite3$1,260.00Oct 19, 2026
BK-48214Lukas BrandtGarden double2$360.00Oct 19, 2026
BK-48227Priya RamanLoft studio5$1,050.00Oct 20, 2026
BK-48233Tomás IbarraFamily room4$960.00Oct 22, 2026
BK-48240Hanna LindqvistCorner king1$260.00Oct 23, 2026

States

No arrivals on Dec 24
EmptyA successful answer with no rows shows the empty message.

Arrivals for Monday and Tuesday

FailureA failed load with no rows offers one retry.
Northgate Global Equity FundNorthgate Capital$4,200M+3.1%
Larkspur Small Cap Value PortfolioLarkspur Capital$2,400M+5.6%
Calder Credit Opportunities Fund IICould not be read$860M+0.8%
Kestrel Short Duration FundKestrel Advisers$120MDoes not apply
Pryor Dean Real Assets TrustPryor Dean PartnersWithheld−1.4%
Hollis Crane Municipal Income TrustHollis CraneNot reported+1.9%
Values the filing did not giveA value the filing did not give says why in its cell, Withheld, Could not be read or Does not apply, never None or a dash, and sorts after every figure whichever way the column runs.
Loading
PendingOn a first load each column's placeholder takes the shape of its cells, a flag beside a bar, tags, figures at the end, and the rows fade in where they were.

Usage

Use it when

  • A screen lists records with the same fields, and you scan, sort or filter them by column.
  • The list may be longer than a screen, or it lives on a server and arrives in pages.
  • The same list must read on a phone, as rows of two lines led by one field.

Use something else when

  • The items are prose or cards with different shapes. Use a Card per item instead.
  • You pick one row to move on, with a search. Use Select instead.
  • A handful of rows where a person acts on one at a time, such as a settings list. Use Item rows in an ItemGroup instead, or leave selection off and give rows rowHref.
  • The page needs numbered pages from a server. Use Pagination instead, or the row window through useRowWindow for rows the client holds.

Rules

General

Content

Avoid

Limits

Install

npx shadcn@latest add https://kaanarici.com/r/cobalt/data-table.json
import { DataTable, DataTableColumns, DataTableSort, DataTableToolbar, type Column, type RowKey, type Rows, type Sort, defaultLabels } from "@/components/cobalt/ui/data-table"