Zazz Design Framework
Components

Table

Styled semantic HTML tables with striped, grid, and compact variants.

Apply .ui-table to a standard <table> element (<caption>, <thead>, <tbody>, <tfoot>, <tr>, <th>, <td>). Rows include hover tints by default. Set data-state="selected" on a <tr> for selected styling.

Wrap wide tables in <div class="overflow-x-auto"> for horizontal scrolling.

Loading components…

Alternating rows

Add data-variant="alternating" for zebra striping:

Loading components…

Grid format

Add data-variant="grid" for borders around all cells:

Loading components…

Compact size

Add data-size="sm" to reduce cell padding:

Loading components…

API

AttributeValues
data-variantalternating, grid (omit = default)
data-sizesm
data-layoutfixed (omit = table-layout: auto)
data-stateselected (on a <tr>)
data-sidetop (on the <caption>; omit = bottom)

Override styling tokens globally on :root or on an instance (--ui-table-row-background--hover, --ui-table-alternating-background).

On this page