Skip to content
Ringobook v3.27.0

Tables

A table wraps a semantic <table> with Ringover styling for headers, rows, borders, scrolling, and cell layouts.

Use .ro-table as the outer block and .ro-table-wrapper around the scrollable <table>. Wrap cell content in .ro-table-cell-content.

<div class="ro-table ro-border-regular">
<section class="ro-table-wrapper">
<table>
<thead>
<tr>
<th>Name</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr>
<td><div class="ro-table-cell-content">Jane Doe</div></td>
<td><div class="ro-table-cell-content">Active</div></td>
</tr>
<tr>
<td><div class="ro-table-cell-content">John Smith</div></td>
<td><div class="ro-table-cell-content">Inactive</div></td>
</tr>
</tbody>
</table>
</section>
</div>
Preview
NameStatus
Jane Doe
Active
John Smith
Inactive

Add .ro-sticky-header so the header row stays visible while scrolling.

<div class="ro-table ro-sticky-header ro-border-regular" style="--ro-table-max-height: 120px;">
<section class="ro-table-wrapper">
<table></table>
</section>
</div>

Add .ro-layout-text on a cell for single-line ellipsis text.

<td class="ro-layout-text">
<div class="ro-table-cell-content">Long text that truncates with ellipsis</div>
</td>
ClassDescription
.ro-border-noneTransparent background, no outer border.
.ro-border-regularStandard outer border.
.ro-border-lightLight outer border.
.ro-sticky-headerSticky <thead> while scrolling.
.ro-fixed-first-colSticky first column.
.ro-row-height-lgTaller row height.
.ro-table-fillFills available height in a flex parent.
.ro-no-scrollOn wrapper — disables scroll.
.ro-layout-textEllipsis text layout in a cell.
.ro-wrap-noOn cell content — prevents wrapping.
.ro-table-skeleton-barLoading skeleton bar in a cell.
.ro-table-empty-cell, .ro-table-empty-contentEmpty state row.
.ro-table-load-more-cell, .ro-table-load-more-contentLoad-more row.
VariableDescription
--ro-table-max-heightMax height before the wrapper scrolls.
--ro-table-first-col-widthWidth of the fixed first column.
--ro-table-col-min-widthMinimum column width.
--ro-table-line-hRow line height.
--ro-table-bg, --ro-table-bg-hoverTable background tokens.

Set aria-busy="true" on <tbody> to disable row hover during loading.

Changelog

Recent updates in @ringover/styles. See the full package changelog .

@ringover/styles@3.24.0
  • Added fill layout mode for flex page shells.
  • Removed ghost table background and caption slot.
@ringover/styles@3.20.0
  • Introduced rich table cell layout and hover styles.