npm.io
0.0.38 • Published 6 years ago

@indshine/mf-table

Licence
MIT
Version
0.0.38
Deps
9
Size
1.5 MB
Vulns
0
Weekly
0

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