material-ui-table

material-ui-table

Stats

StarsIssuesVersionUpdatedCreatedSize
material-ui-table
320.1.26 years ago6 years agoMinified + gzip package size for material-ui-table in KB

Readme

#material-ui-table

Installation

material-ui-table is available as an npm package.

npm i material-ui-table

Usage

import React from 'react';
import Table from 'material-ui-table';

export default class MyAwesomeReactComponent extends React.Component  {
  constructor(props) {
    super(props);
  }
  render(){
    let columns=[
      {key:'id',label:'ID'},
      {key:'title',label:'Title'},
      {key:'link',label:'Link'},
    ];
    let data=[{
      id:1,
      title:'React',
      link:<a href="https://github.com/facebook/react">React</a>,
      _selected:true, //Table Row Props
      _striped:false
    },{
      id:2,
      title:'Material UI',
      link:<a href="https://github.com/callemall/material-ui"/>Material UI</a>
    }];
    return (
      <Table
        columns={columns}
        data={data}
      />
    )
  }
}

Props

header object Table Header Props

body object Table Body Props

title string

footer string

columns array

data array

...others Table Props

Contribute

License

This project is licensed under the terms of the MIT license

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.