Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 

react-css-grid-table

This is a React table library using CSS grid.

Installation

yarn add https://github.com/RebeccaPark/react-css-grid-table

JSBin example

See here.

Webpack-style example

import Table, { IconColumn } from 'react-css-grid-table';

const columns = [
  {
    label: 'Title',
    value: 'title',
    width: '1fr',
  },
  {
    value: 'likes',
    width: '0.5fr',
    className: 'anyAdditionalClassName',
    format: (data) => <IconColumn icon="fa fa-heart" data={data} />, 
  },
];

const data = [
  {
    title: 'This is the first post',
    likes: 3,
  },
  {
    title: 'This is the second post',
    likes: 2,
  },
];

<Table
  columns={columns}
  data={data}
/>

About

A React table library using CSS Grid Layout

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published