Tables

Basic Table

Wrap your table in .quanta-table-responsive, and apply .quanta-table to a standard HTML table.

<div class="quanta-table-responsive">
  <table class="quanta-table">
    <thead>
      <tr><th>Name</th><th>Age</th><th>City</th></tr>
    </thead>
    <tbody>
      <tr><td>Alice</td><td>28</td><td>NYC</td></tr>
      <tr><td>Bob</td><td>34</td><td>LA</td></tr>
    </tbody>
  </table>
</div>
NameAgeCity
Alice28New York
Bob34Los Angeles

Size Variants

Control padding and font-size with .quanta-table-sm or .quanta-table-lg.

<table class="quanta-table quanta-table-sm">…</table>
<table class="quanta-table quanta-table-lg">…</table>
ItemQty
Apples10
Oranges5

Hover Rows

Highlight rows on hover with .quanta-table-hover.

<table class="quanta-table quanta-table-hover">…</table>
TaskStatus
Build UIDone
Write DocsIn Progress

Zebra Stripes

Alternate row backgrounds with .quanta-table-zebra.

<table class="quanta-table quanta-table-zebra">…</table>
MonthRevenue
Jan$5k
Feb$7k

Borders

Show all cell borders with .quanta-table-bordered.

<table class="quanta-table quanta-table-bordered">…</table>
ProductPrice
Book$12
Pen$2

Rounded Corners

Give the table rounded corners with .quanta-table-rounded.

<table class="quanta-table quanta-table-rounded">…</table>
CountryCode
USAUS
CanadaCA

Shadowed

Add a drop shadow with .quanta-table-shadowed.

<table class="quanta-table quanta-table-shadowed">…</table>
UserRole
JaneAdmin
JohnUser

Glass (Backdrop Blur)

Frosted glass effect with .quanta-table-glass (use in supported browsers).

<table class="quanta-table quanta-table-glass">…</table>
PlanCost
Free$0
Pro$25

Sortable Headers

Mark headers as sortable with .sortable, and toggle .sorted-asc / .sorted-desc in your JS.

<th class="sortable sorted-asc">Name</th>

Responsive Scrolling

The .quanta-table-responsive wrapper ensures horizontal scrolling on narrow viewports.