⌗ instant-table

Input data, output a react responsive table ✨

npm package version  npm downloads  code style: prettier

Live Demo

https://instant-table.coston.io

Features

Install

Install with npm:

npm i instant-table

Usage

<Table data={mockData.slice(0, 20)} />

Options

PropTypeArgumentDefaultDescription
dataarrayrequirednullarray of objects
breakpointstringoptional768pxWidth at which the table becomes a list
headerOrderarrayoptionalfirst object orderChoose columns to display with order
rowHeadersbooleanoptionalfalseconvert first column to row headers
captionstringoptionalnulladd a table caption
sortablebooleanoptionaltrueset to false to disable sortability
tableColorstringoptionalblackset header background color
headerTextColorstringoptionalwhiteset header text color

Contributing

Please help ship data faster! Submit any issues and/or make a pull request!