A small web component for responsive <table> elements.
npm install @zachleat/table-sawtable-sawA small structural-only zero-dependency Web Component for responsive `` * Use breakpoint You have a few options (choose one of these): 1. Install via npm: npm install @zachleat/table-saw Make sure you include the ` ` * Supports one or many elements. Heavily inspired by Filament Group’s Tablesaw Stack jQuery plugin.
Demo
Examples
html
` attribute to set the breakpoint (default:(max-width: 39.9375em)).type="container"
* Use attribute to use container queries instead of viewport-based media queries (default: type="media").ratio
* Use attribute to override the small viewport column ratio (default: 1/2).zero-padding
* Use attribute to remove small viewport padding on table cells.text-align
* Use attribute to force column text alignment at small viewport.Installation
1. Download the source manually from GitHub into your project.
1. Skip this step and use the script directly via a 3rd party CDN (not recommended for production use)$3
`html`html`Features