GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - shafqatalix/css-grid-reactjs: CSS-Grid-ReactJS

BranchesTags
Open more actions menu

Latest commit

 

History

69 Commits
69 Commits

Folders and files

NameName
Last commit message
Last commit date
.storybook
.storybook
 
 
docs
docs
 
 
src
src
 
 
styleguide
styleguide
 
 
.gitignore
.gitignore
 
 
.npmignore
.npmignore
 
 
.npmrc
.npmrc
 
 
.prettierrc
.prettierrc
 
 
.release-it.json
.release-it.json
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
_config.yml
_config.yml
 
 
config.js
config.js
 
 
jest.config.js
jest.config.js
 
 
package.json
package.json
 
 
styleguide.config.js
styleguide.config.js
 
 
tsconfig.json
tsconfig.json
 
 
webpack.config.js
webpack.config.js
 
 

Repository files navigation

CSS-Grid-ReactJS

React layout component based on CSS Grid Spec

Build Status

Storybook Examples

API Styleguide

Code Sandbox Example

npm i css-grid-reactjs
or
yarn add css-grid-reactjs
import { HeaderRow, HeaderCell, Cell, Grid, Row } from "css-grid-reactjs";
import "css-grid-reactjs/dist/lib.css";

const onSort = (field: string) => {
    console.log(`onSort has been called for data-field:${field}`);
};

<Grid>
    <HeaderRow>
        <HeaderCell onSort={onSort} dataField="name">
            Name
        </HeaderCell>
        <HeaderCell dataField="address">Address</HeaderCell>
    </HeaderRow>
    <Row>
        <Cell>John Doe</Cell>
        <Cell>23 Randolph St</Cell>
    </Row>
    <Row>
        <Cell>Dexter White</Cell>
        <Cell>918 Windsor Avenue</Cell>
    </Row>
</Grid>;

Features

  • Typescript support.
  • No media queries, purely based on css-grid spec.
  • Fully declarative.
  • Simple and liner API.
  • Responsive by default without any additional css.
  • Allows Fixed size gird with scrollbar on content overflow.
  • Allow full customization of styles.
  • Supports up to 30 grid columns without distorting UI.

TODO

  • Improve Docs & Examples.
  • Pagination component.
  • Add unit-tests.

Browser Support

See http://caniuse.com/#feat=css-grid

Related

  • React CSS Grid

MIT License

About

CSS-Grid-ReactJS

xalisys.github.io/css-grid-reactjs/styleguide/index.html

Resources

Readme
MIT license
Activity

Stars

4 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.