ui

Table

A simple table component for displaying tabular data. Built with Base UI and Tailwind CSS. Copy-paste ready.

API Reference

Installation

Usage

Examples

Card-style table

Use variant="card" when the grid itself should look like a set of cards (for example dashboards or standalone tables without an outer frame).

Table in CardFrame

Put the table in CardFrame so the grid sits inside the card shell (border, radius, clipping). Use variant="card" on Table. The example below is static markup—no row selection or TanStack.

Table in Frame

Wrap the table in a Frame for bordered app-surface framing. Use variant="card" on Table so rows keep the card-style treatment inside the frame.

Orders

A realistic orders table with customer name, email, order date, and a colored status badge for payment state.

Team Members

Shows team members with avatar initials, full name, role label, and an online/offline status indicator.

Subscriptions

Lists subscribers with their plan tier badge, billing cycle, renewal date, and monthly amount in a scannable layout.

Sortable API Endpoints

Click any column header to sort ascending or descending. Arrow icons reflect the current sort direction and error rates are contextually colored by severity.

Storage Usage

Each row shows a file-type storage bar with a color-coded fill. Members at or above 90% capacity display a "Storage almost full" warning alongside the bar.

Audit Log

A security audit log inside a Frame with actor avatar, action badges color-coded by type (create / update / delete / invite), resource, IP address in monospace, and relative timestamps.

Product Inventory

A product inventory table with SKU in monospace, category, price, and a stock-level badge that turns green for In Stock, amber for Low Stock, and red for Out of Stock.

Invoice History

Lists client invoices with issued and due dates, a colored status badge (Paid, Pending, Overdue, Draft), and a footer row showing the total outstanding balance.

Feature Comparison

A plan comparison table with features as rows and Free, Pro, and Enterprise as columns. String values show the tier limit; boolean values render a green check or a muted dash.

Server Health

Monitors server instances with region, a status badge, and inline progress bars for CPU and memory utilization alongside uptime percentage in monospace.

Contributor Leaderboard

A ranked contributor table with avatar, name, commit/PR/review counts, and a colored trend indicator that shows a TrendingUp or TrendingDown icon with the rank change value.