@indshine/mf-table
TypeScript icon, indicating that this package has built-in type declarations

0.0.38 • Public • Published

mf-table

A motherfucking table to rule them all

JavaScript Style Guide

Install

npm install --save @inshine/mf-table

Usage

import React from 'react'

import Table from '@indshine/mf-table'
import '@indshine/mf-table/dist/index.css'

const data = [
  {
    name: 'Elon Musk',
    company: 'Tesla',
  },
  {
    name: 'Jeff Bezos',
    company: 'Amazon',
  },
]

const columns = [
  { dataKey: 'name', title: 'Name', renderCell: (name: string) => name },
  {
    dataKey: 'company',
    title: 'Company',
    renderCell: (company: string) => company,
  },
]

const Example = () => <Table data={data} columns={columns} />

License

MIT © abinashpanda

Readme

Keywords

none

Package Sidebar

Install

npm i @indshine/mf-table

Weekly Downloads

2

Version

0.0.38

License

MIT

Unpacked Size

1.59 MB

Total Files

57

Last publish

Collaborators

  • aegonx