3.0.0 • Published 5 years ago

instant-table v3.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

⌗ 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

  • Instantly build a table from your array of objects
  • Automatic headers
  • Responsive conversion to HTML <dl> key-value format at mobile breakpoint
  • Great Accessibility
  • Customizations

Install

Install with npm:

npm i instant-table

Usage

const TableExample = () => (
    <Table
      data={mockData}
    />
)

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!

3.0.0

5 years ago

2.0.0

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago