Create responsive, mobile-friendly tables in minutes
RSL includes three table styles optimized for different use cases:
Maintains table structure, adds horizontal scrolling on mobile
Name
Email
Phone
Status
John Doe
john@example.com
555-1234
Active
Stacks rows vertically, shows labels inline with data
data-label="Column Name" to each <td> for this to work!
Name
Email
Status
John Doe
john@example.com
Active
Transforms into card-style layout on mobile devices
data-label on each <td> like responsive tables.
Product
Price
Stock
Widget A
$19.99
In Stock
| Class/Attribute | Purpose |
|---|---|
.scrollable | Horizontal scroll on mobile |
.responsive | Stacks rows vertically on mobile |
.responsive-card | Card-style layout on mobile |
.sortable | Visual sort indicators (requires custom JS) |
data-label="..." | Column label for mobile view (required for responsive/card tables) |
.table-scroll-wrapper | Wrapper for scrollable tables |
.scrollable for data-heavy tables with 6+ columns.responsive for simple tables with 3-5 columns.responsive-card for product/user lists that look better as cardsdata-label attributes—they're required for mobile views!data-label text makes senseRSL Tables are accessibility-friendly:
<table>, <thead>, <tbody> structuredata-label provides context for screen readers on mobile