Zach’s ugly mug (his face) Zach Leat­herman

<table-saw> Web Component

Watch in 2 minutes 1k 10 September 29, 2023
Pinned on GitHub@zachleat/table-saw

A small web component for responsive <table> elements.

1.1%
Popularity
npm56k Monthly downloads sparkline for @zachleat/table-saw, ranging 3k to 7k cdn7k Monthly jsDelivr CDN hits sparkline for @zachleat/table-saw, ranging 332 to 1k
Versions
Monthly publishes sparkline for @zachleat/table-saw, ranging 0 to 4 8 versions in
1.0.7
Audit
0 reports
0 deps
Issues
1
2
PRs
0
3

A lightweight structural-only zero-dependency web component wrapper for <table> to render wide tables in small viewports. Automatically creates a two-column layout at small screens with table headers repeated throughout.

Works with Container Queries or Media Queries. Easily customize the ratio of the two-column layout in markup.

Heavily inspired by Filament Group’s Tablesaw Stack jQuery plugin (I also worked on that project). Read the August 2014 post: Tablesaw: A Flexible Tool for Responsive Tables.


Update: here’s a bonus video on how we use it on CloudCannon:

Watch on YouTube: table-saw Web Component

< Older
Jamstack ZHUZH: a Roundtable Discussion on the future of the Jamstack Community
Newer >
resize-asaurus Web Component

Zach Leatherman IndieWeb Avatar for https://zachleat.com/is a builder for the web at Font Awesome and the creator of Build Awesome (née IndieWeb Avatar for https://www.11ty.devEleventy/11ty), an award-winning open source website generator. He measures website performance with speedlify and at one point became too fixated on web fonts. He has given 89 talks in nine different countries at events like Beyond Tellerrand, Smashing Conference, Jamstack Conf, CSSConf, and The White House. Formerly part of CloudCannon, Netlify, Filament Group, NEJS CONF, and NebraskaJS. Learn more about Zach »

1 Repost

IndieWeb Avatar for https://www.alvinashcraft.com
Shamelessly plug your related post

These are webmentions via the IndieWeb and webmention.io.

Sharing on social media?

This is what will show up when you share this post on Social Media:

How did you do this? I automated my Open Graph images. (Peer behind the curtain at the test page)