Table

A list of your recent invoices.
InvoiceStatusMethodAmount
INV001PaidCredit Card$250.00
INV002PendingPayPal$150.00
INV003UnpaidBank Transfer$350.00
INV004PaidPaypal$450.00
INV005PaidCredit Card$550.00
INV006PendingBank Transfer$200.00
INV007UnpaidCredit Card$300.00
Total$2,500.00

Usage

Include CSS

Import Tailwind and one full Basecoat style bundle.

@import "tailwindcss";
@import "basecoat-css/vega.css";

Or import only the base CSS, Table component CSS, and one style pack.

@import "tailwindcss";
@import "basecoat-css/base.css";
@import "basecoat-css/components/table.css";
@import "basecoat-css/styles/vega.css";

Using CDN or bundler imports? See the Installation page.

Add your table HTML

Add class="table" to your table element. Wrap it in class="table-container" when horizontal scrolling is needed.

<div class="table-container">
<table class="table">
  <!-- Content of your table -->
</table>
</div>

Scrollable tables clip overlays

Do not place inline popovers, dropdown menus, selects, or tooltips inside .table-container. The table container uses horizontal overflow for wide tables, so absolutely positioned overlays can be clipped or create scrollbars. Keep overlay actions outside scrollable table regions, or omit .table-container when the table does not need horizontal scrolling.

Examples

Examples below follow upstream table patterns where they map cleanly to Basecoat’s non-portalled HTML model.

A list of your recent invoices.
InvoiceStatusMethodAmount
INV001PaidCredit Card$250.00
INV002PendingPayPal$150.00
INV003UnpaidBank Transfer$350.00
Total$2,500.00

With Actions

ProductPriceActions
Wireless Mouse$29.99
Mechanical Keyboard$129.99
USB-C Hub$49.99

RTL

Set dir="rtl" on the table container when needed. Use logical alignment utilities such as text-end.

قائمة الفواتير الأخيرة.
الفاتورةالحالةالمبلغ
INV001مدفوعة$250.00