Table

Table is a neobrutalist React component from Cruise UI. A fully bordered table with a --primary header row and zebra rows. Install it with npx shadcn@latest add @cruiseui/table.

Install

Terminal

npx shadcn@latest add @cruiseui/table

First time? Installation shows the one-off components.json setup (the @cruiseui registry) and how to turn the theme on.

Example

Corners
RouteFareStatus
Oshodi – CMS₦800Paid
Ikeja – Yaba₦600Pending
Ojota – Obalende₦1,000Overdue

When to use it

When to use

Comparing rows of the same kind of data: orders, routes, invoices.

When not to

Layout. A single record (use a Card).

Props

CruiseTable

PropTypeDefaultDescription
columnsCruiseColumn<Row>[]——
rowsRow[]——
rowKey(row: Row) => string—Stable React key per row.
caption?ReactNode——
className?string——

Accessibility

  • A real <table> with <th> headers; numbers are right-aligned.
  • Scrolls sideways inside its box on small screens.