Tables

Display tabular data with various styling options.

Basic Table

#NameEmailRole
1John Doejohn@example.comAdmin
2Jane Smithjane@example.comUser
3Bob Johnsonbob@example.comUser
<table class="ui-table">
  <thead>
    <tr><th>#</th><th>Name</th><th>Email</th><th>Role</th></tr>
  </thead>
  <tbody>
    <tr><td>1</td><td>John Doe</td><td>john@example.com</td><td>Admin</td></tr>
    <tr><td>2</td><td>Jane Smith</td><td>jane@example.com</td><td>User</td></tr>
  </tbody>
</table>

Striped Table

Add alternating row colors with ui-table--striped.

#NameEmailRole
1John Doejohn@example.comAdmin
2Jane Smithjane@example.comUser
3Bob Johnsonbob@example.comUser
<table class="ui-table ui-table--striped">
  ...
</table>

Bordered Table

Add borders to all cells with ui-table--bordered.

#NameStatus
1Item 1Active
2Item 2Pending
<table class="ui-table ui-table--bordered">
  ...
</table>

Hoverable Rows

Add hover effect on rows with ui-table--hover.

#NameActions
1Hover me
2Hover me too
<table class="ui-table ui-table--hover">
  ...
</table>

Compact Table

Reduce cell padding with ui-table--sm.

#NameValue
1Compact row100
2Another row200
3More data300
<table class="ui-table ui-table--sm ui-table--striped">
  ...
</table>

CSS Classes Reference

Class Description
.ui-table Base table class
.ui-table--striped Alternating row colors
.ui-table--bordered Borders on all cells
.ui-table--hover Hover effect on rows
.ui-table--sm Compact/smaller padding