react table with more features from the courtesy of npm library react-table!
- Sticky columns
- Scroll observe event
- Optimized column resize event
npm install react-moar-table
export default function MyTable({
columns,
data,
minWidth,
width,
hoveredColor,
clickedColor,
}) {
return (
<Table
columns={columns}
data={data}
minWidth={minWidth}
width={width}
hoveredColor={hoveredColor}
clickedColor={clickedColor}
/>
);
}
Put column array in here. Identical with react-table. Must be provided See react-table column usage!
Put data array in here. Identical with react-table. Must be provided See react-table data usage!
Minimum width of columns. Must be integer or string type.
Default width of columns. Must be integer or string tpye.
color of hovered cell in table. Must be string type.
color of sorted column in table. Must be string type.
Under MIT license :)