react-c-grid

1.1.3 • Public • Published

react-c-grid

Build Status npm version

Demo

Installation

npm install react-c-grid

Usage

import CGrid from 'react-c-grid';
// import index.css from node_modules/react-c-grid/lib to your sass or less file.
 
class App extends Component {
    render() {
        const columns = [
            { key: 'name', label: 'Name' },
            { key: 'email', label: 'Email' },
            { key: 'company', label: 'Company' },
            { key: 'phone', label: 'Phone' }
        ];
        const rows = [/* ... */];
 
        return (
            <CGrid rows={rows} columns={columns} />
        );
    }
}

Sample

Run the sample:

npm install
npm run wds
npm run debug

License

MIT

Package Sidebar

Install

npm i react-c-grid

Weekly Downloads

1

Version

1.1.3

License

MIT

Unpacked Size

2.46 MB

Total Files

65

Last publish

Collaborators

  • sherlockkong