ortaui
  1. Components
  2. Data display

Table

Native table elements. Primary sits in a grey tray with a card-style body; secondary is flat with header pills.

Installation#

npx shadcn add @ortaui/table

Examples#

Primary#

Recent invoices
InvoiceStatusMethodAmount
INV-001PaidCard$250.00
INV-002PendingTransfer$150.00
INV-003UnpaidCard$350.00
Total$750.00

Secondary#

Recent invoices
InvoiceStatusMethodAmount
INV-001PaidCard$250.00
INV-002PendingTransfer$150.00
INV-003UnpaidCard$350.00
Total$750.00

Row selection#

NameRoleStatus
Olivia MartinOwnerActive
Jackson LeeAdminActive
Isabella NguyenEditorInvited
William KimViewerSuspended
1 of 4 selected

Rich cells#

MemberRoleStatusActions
OM
Olivia Martinolivia@acme.dev
OwnerActive
JL
Jackson Leejackson@acme.dev
AdminActive
IN
Isabella Nguyenisabella@acme.dev
EditorInvited
WK
William Kimwill@acme.dev
ViewerSuspended

Empty state#

NameRoleStatus
No results
No members match your filters. Try adjusting your search.

Pagination#

IDProjectOwnerOpen tasks
PRJ-001WebsiteOlivia Martin4
PRJ-002Mobile appJackson Lee11
PRJ-003DocsIsabella Nguyen18
PRJ-004APIWilliam Kim6
PRJ-005DashboardOlivia Martin13

Showing 1–5 of 12

Loading#

InvoiceCustomerAmount
INV-101Acme Inc.$420.00
INV-102Globex$1,150.00
INV-103Initech$89.00
INV-104Umbrella$640.00

Wide table#

IDProjectBranchCommitEnvironmentRegionDurationStatus
dpl_8f3k2websitemaina1b2c3dProductioniad142sReady
dpl_7d9x1dashboardfeat/billinge4f5a6bPreviewfra11m 08sBuilding
dpl_6c2m8apimain9c8d7e6Productionsfo157sReady
dpl_5b1n4docsfix/typos3b2a1f0Previewhnd131sFailed

In a card#

Team members
Manage who has access to this project.
NameRoleStatus
Olivia MartinOwnerActive
Jackson LeeAdminActive
Isabella NguyenEditorInvited
William KimViewerSuspended

API reference#

PropTypeDefaultDescription
variant"primary" | "secondary""primary"Tray with a card body, or flat rows with header pills.
classNamestring-Merged with the component classes via cn().