1.0.8 • Published 2 years ago

modern-grid-system v1.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Modern Grid System This is flex-grid system for using optimized way to render any list or creating page with custom grid.

Installation

npm install --save modern-grid-system

Usage/Examples

import { Grid } from "modern-grid-system";

function App() {
  return (
    <Grid
      divideBy={[65, 35]}
      elements={[<CartList />, <CartCheckoutCard />]}
      gutterSpace={4}
    />
  );
}

Output

alt-text

Props

  1. divideBy: array of number
  2. elements: array of elements
  3. gutterSpace: number

Usage

  1. divideBy: Used to specify how grid should be divided with respect to 100% width. It will render elements in given percentage width
  2. elements: array of elements for rendering elements based on division
  3. gutterSpace: Space between elements
1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago