renkai-reusable-components-library
v1.0.0
Published
A reusable table component for React projects, supporting sorting, pagination, and row click handling.
Downloads
13
Readme
SimpleTableView Component
A reusable table component for React projects, supporting sorting, pagination, and row click handling.
Installation
To use this component in your project:
npm install renkai/reusable-components-library
Props
- columns: An array of column objects defining the headers.
- data: An array of data objects representing the rows.
- pageSize: Number of rows per page (default is 5).
- onRowClick: Function to be called when a row is clicked.