brijr/ui

Lab

Table

npx shadcn@latest add @brijr/table

All parts

Header, body, footer and caption. Hover a row; INV-002 has data-state=selected.

Invoices for March 2026.
InvoiceStatusMethodAmount
INV-001PaidCredit card$250.00
INV-002PendingPayPal$1,150.00
INV-003UnpaidBank transfer$35.50
INV-004PaidCredit card$12,450.00
Total$13,885.50
TableCaption · TableFooter

Selection

Checkbox column with selected rows. Checkboxes are static here.

NameEmailRoleActions
Ada Lovelaceada@example.comOwner
Grace Hoppergrace@example.comAdmin
Linus Torvaldslinus@example.comMember
data-state="selected"

Numeric

Right-aligned numeric columns with tabular-nums.

RegionRequestsp95 (ms)Errors
us-east-11,204,8811120.02%
eu-west-188,410970.10%
ap-south-17,0021,4804.31%
text-right · tabular-nums

Overflow

A wide table in a max-w-lg container scrolls horizontally inside the table container.

Serviceus-east-1us-west-2eu-west-1eu-central-1ap-southeast-1ap-northeast-1sa-east-1
api111148185222259296333
web222296370444518592666
worker333444555666777888999
wide · overflow-x-auto
EventTime
Deployment of commit 4f9a2c1 to production failed health checks and was rolled back automatically09:41
long cell text · whitespace-nowrap

Empty

InvoiceStatusAmount
No invoices yet.
no rows
InvoiceStatusAmount
header only

Render

Every part takes render. Here the first cell of each row is a row header.

InvoiceStatusAmount
INV-001Paid$250.00
INV-002Pending$1,150.00
INV-003Unpaid$35.50
TableCell render={<th scope="row" />}