data-table-components

0.2.0 • Public • Published

data-table-components

data-table-components is a simple to use yet completely customizable component for using tables.

  • Add Json data (Array of Objects) and it will print the table

Installation

This requires [React.js and Prop-Types] to run.

npm i data-table-components

Demo

Sandbox link to Play with

How to Use

Install and import data-table-components and pass the props as per the below table

import React from "react";
import TableComponent from "data-table-components";

let tableData = [
  { name: "idjsk", employee: "32434", age: 11 },
  { name: "idjsk", employee: "32434", age: 12 },
  { name: "idjsk", employee: "32434", age: 13 },
  { name: "idjsk", employee: "32434", age: 14 }
];

const App = () => {
  return (
    <TableComponent data={tableData}/>
  );
};
export default App;

Readme

Keywords

none

Package Sidebar

Install

npm i data-table-components

Weekly Downloads

0

Version

0.2.0

License

none

Unpacked Size

30.4 kB

Total Files

17

Last publish

Collaborators

  • vicky.gupta