Skip to content
DataBrowse data components
ComponentsDataStable

Table

Native table styling with uppercase headers, hover row, sort, and density modes.

Live preview

StatusSpend
Atlas FinanceActive$84,200
Northstar HealthReview$52,910
Vector LabsTrial$12,480

Usage

Adapters:React stableVue stable
index.html
<table class="lm-table">
  <thead><tr><th><button class="lm-table-sort" aria-sort="ascending">Name</button></th></tr></thead>
  <tbody>…</tbody>
</table>

CSS classes (6)

ClassDescription
lm-tableNative <table>
lm-table-stripedZebra rows
lm-table-compactSmaller padding
lm-table-spaciousLarger padding
lm-table-toolbarTitle + actions row
lm-table-sortHeader sort button (aria-sort)

React props (2)

PropTypeDefaultDescription
stripedboolean
densitycompact | comfortable | spacious

Accessibility

  • Prefer semantic <thead><tbody>.
  • Use scope='col' on header cells; <caption> when complex.
  • Mirror sort with aria-sort='ascending|descending|none'.

Spotted something wrong? Edit this entry on GitHub.