Murasaki
Components

Table

A responsive table component.

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

Usage

import {
  Table,
  TableBody,
  TableCell,
  TableHead,
  TableHeader,
  TableRow,
} from "@murasakijs/ui";
<Table>
  <TableHeader>
    <TableRow>
      <TableHead>Name</TableHead>
    </TableRow>
  </TableHeader>
  <TableBody>
    <TableRow>
      <TableCell>Row 1</TableCell>
    </TableRow>
  </TableBody>
</Table>

API Reference

Subcomponents

ComponentRenders
Table<table>, wrapped in an overflow-auto <div> for horizontal scrolling.
TableHeader<thead>
TableBody<tbody>
TableFooter<tfoot>
TableRow<tr>
TableHead<th>
TableCell<td>
TableCaption<caption>

Each subcomponent extends the matching native HTML table element's attributes.

Improve this page on GitHub

On this page