Skip to content

Table

Data tables with hover, striping, compact density, selection, numeric alignment and sortable columns.

CSS + mian.js JSON Markdown Registry item

Sortable

Recent invoices
Status
INV-001PaidCard€250.00
INV-002PendingTransfer€150.00
INV-003OverduePayPal€350.00
INV-004PaidCard€450.00
Total€1,200.00

Striped and compact

NoodleOriginRadius
UdonJapan12px
PhoVietnam8px
MeeMalaysiapill
ShiratakiJapan0

Installation

Everything ships in one stylesheet and one small script. There is nothing to import per component.

<link rel="stylesheet" href="https://mian.ro/dist/mian.css">
<script src="https://mian.ro/dist/mian.js" defer></script>

Prefer to own the files? /r/table.json is a registry item with this component's CSS and example markup, ready to copy into your project with any tool that reads the open registry-item format.

Class reference

Class / attributeDescription
mn-table-wrapBorder and horizontal scroll.
mn-tableThe table.
mn-table-hover · mn-table-striped · mn-table-compactModifiers.
mn-numRight-aligned tabular numbers.
th[aria-sort] > buttonSortable column: mian.js sorts the rows and updates aria-sort.

Accessibility

  • Use real <th scope> headers and a <caption>. Sort state is exposed through aria-sort on the header.
Choose a noodle

Minimal

Flat

Pixel

Linear

Thin

Glass

Textured

Bold

Elegant

Rounded

On this page