For AI agents: the complete documentation index is available at https://a3s-lab.github.io/UI/en/llms.txt, the full documentation bundle is available at https://a3s-lab.github.io/UI/en/llms-full.txt, and this page is available as Markdown at https://a3s-lab.github.io/UI/en/components/table.md.

Table

Live previewHTML · CSS · JavaScript
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 A3S UI style bundle.

@import "tailwindcss";
@import "@a3s-lab/ui/a3s.css";

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

@import "tailwindcss";
@import "@a3s-lab/ui/base.css";
@import "@a3s-lab/ui/components/table.css";
@import "@a3s-lab/ui/styles/a3s.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>

Examples

Examples below follow upstream table patterns where they map cleanly to A3S UI's non-portalled HTML model.

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

With Actions

Live previewHTML · CSS · JavaScript
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.

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