Reactolith UI Getting Started Introduction Installation Usage Layout Aspect Ratio Card Resizable Scroll Area Separator Direction Provider Forms Button Button Group Calendar Checkbox Combobox Field Input Input Group Input OTP Label Native Select Radio Group Select Slider Switch Textarea Toggle Toggle Group Data Display Accordion Avatar Badge Carousel Chart Collapsible Item Kbd Table Feedback Alert Empty Progress Skeleton Sonner Spinner Overlay Alert Dialog Context Menu Dialog Dropdown Menu Hover Card Popover Sheet Tooltip Navigation Breadcrumb Command Menubar Navigation Menu Pagination Sidebar Tabs

Table

A responsive table component.

Preview

A list of recent invoices.InvoiceStatusMethodAmountINV001PaidCredit Card$250.00INV002PendingPayPal$150.00

Usage

<ui-table>
  <ui-table-caption>A list of recent invoices.</ui-table-caption>
  <ui-table-header>
    <ui-table-row>
      <ui-table-head class="w-[100px]">Invoice</ui-table-head>
      <ui-table-head>Status</ui-table-head>
      <ui-table-head>Method</ui-table-head>
      <ui-table-head class="text-right">Amount</ui-table-head>
    </ui-table-row>
  </ui-table-header>
  <ui-table-body>
    <ui-table-row>
      <ui-table-cell class="font-medium">INV001</ui-table-cell>
      <ui-table-cell>Paid</ui-table-cell>
      <ui-table-cell>Credit Card</ui-table-cell>
      <ui-table-cell class="text-right">$250.00</ui-table-cell>
    </ui-table-row>
    <ui-table-row>
      <ui-table-cell class="font-medium">INV002</ui-table-cell>
      <ui-table-cell>Pending</ui-table-cell>
      <ui-table-cell>PayPal</ui-table-cell>
      <ui-table-cell class="text-right">$150.00</ui-table-cell>
    </ui-table-row>
  </ui-table-body>
</ui-table>

Sub-components

<ui-table> <ui-table-header> <ui-table-body> <ui-table-footer> <ui-table-row> <ui-table-head> <ui-table-cell> <ui-table-caption>

All components also accept standard HTML attributes (class, id, style, data-*, aria-*, etc.) which are passed through to the underlying element.