- Components
- 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/tableExamples#
Primary#
| Invoice | Status | Method | Amount |
|---|---|---|---|
| INV-001 | Paid | Card | $250.00 |
| INV-002 | Pending | Transfer | $150.00 |
| INV-003 | Unpaid | Card | $350.00 |
| Total | $750.00 | ||
Secondary#
| Invoice | Status | Method | Amount |
|---|---|---|---|
| INV-001 | Paid | Card | $250.00 |
| INV-002 | Pending | Transfer | $150.00 |
| INV-003 | Unpaid | Card | $350.00 |
| Total | $750.00 | ||
Row selection#
| Name | Role | Status | |
|---|---|---|---|
| Olivia Martin | Owner | Active | |
| Jackson Lee | Admin | Active | |
| Isabella Nguyen | Editor | Invited | |
| William Kim | Viewer | Suspended | |
| 1 of 4 selected | |||
Rich cells#
| Member | Role | Status | Actions |
|---|---|---|---|
OM Olivia Martinolivia@acme.dev | Owner | Active | |
JL Jackson Leejackson@acme.dev | Admin | Active | |
IN Isabella Nguyenisabella@acme.dev | Editor | Invited | |
WK William Kimwill@acme.dev | Viewer | Suspended |
Empty state#
| Name | Role | Status |
|---|---|---|
No results No members match your filters. Try adjusting your search. | ||
Pagination#
| ID | Project | Owner | Open tasks |
|---|---|---|---|
| PRJ-001 | Website | Olivia Martin | 4 |
| PRJ-002 | Mobile app | Jackson Lee | 11 |
| PRJ-003 | Docs | Isabella Nguyen | 18 |
| PRJ-004 | API | William Kim | 6 |
| PRJ-005 | Dashboard | Olivia Martin | 13 |
Showing 1–5 of 12
Loading#
| Invoice | Customer | Amount |
|---|---|---|
| INV-101 | Acme Inc. | $420.00 |
| INV-102 | Globex | $1,150.00 |
| INV-103 | Initech | $89.00 |
| INV-104 | Umbrella | $640.00 |
Wide table#
| ID | Project | Branch | Commit | Environment | Region | Duration | Status |
|---|---|---|---|---|---|---|---|
| dpl_8f3k2 | website | main | a1b2c3d | Production | iad1 | 42s | Ready |
| dpl_7d9x1 | dashboard | feat/billing | e4f5a6b | Preview | fra1 | 1m 08s | Building |
| dpl_6c2m8 | api | main | 9c8d7e6 | Production | sfo1 | 57s | Ready |
| dpl_5b1n4 | docs | fix/typos | 3b2a1f0 | Preview | hnd1 | 31s | Failed |
In a card#
Team members
Manage who has access to this project.
| Name | Role | Status |
|---|---|---|
| Olivia Martin | Owner | Active |
| Jackson Lee | Admin | Active |
| Isabella Nguyen | Editor | Invited |
| William Kim | Viewer | Suspended |
API reference#
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "primary" | "secondary" | "primary" | Tray with a card body, or flat rows with header pills. |
| className | string | - | Merged with the component classes via cn(). |