tablets
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

TableTS

A simple React component for displaying tabular data.

Install

npm install @arnaud.derison/TableTS

Usage

import React from 'react';
import Table from '@arnaud.derison/TableTS';

function Delete(){
  const handleClick = ()=>{
    console.log("click");
  }

  return (
    <Button onClick={()=>handleClick()}>Delete</Button>
    );
}

const title = ['Name', 'Age', 'City'];
const data = [
  ['John Doe', 'New York', <Delete />],
  ['Jane Smith', 'London', <Delete />],
  ['Bob Johnson', 'Paris', <Delete />],
];

function MyComponent() {
  return (
    <Table title={title} data={data} />
  );
}

Readme

Keywords

Package Sidebar

Install

npm i tablets

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

3.71 kB

Total Files

6

Last publish

Collaborators

  • arnaud.derison