All Projects β†’ abraztsov β†’ Reactsimpleflexgrid

abraztsov / Reactsimpleflexgrid

Licence: mit
A way to quickly add a Grid Layout to your React app πŸš€

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Reactsimpleflexgrid

ReactSimpleFlexGrid
A way to quickly add a Grid Layout to your React app πŸš€
Stars: ✭ 185 (+2.21%)
Mutual labels:  grid, flexbox, grid-layout
Bootstrap Grid Css
The grid and responsive utilities classes extracted from the Bootstrap 4 framework, compiled into CSS.
Stars: ✭ 119 (-34.25%)
Mutual labels:  grid, grid-layout, bootstrap
Grd
A CSS grid framework using Flexbox. Only 321 bytes (Gzipped).
Stars: ✭ 2,210 (+1120.99%)
Mutual labels:  grid, grid-layout, flexbox
Grassy
Build layout through ASCII art in Sass (and more). No pre-built CSS. No additional markup.
Stars: ✭ 335 (+85.08%)
Mutual labels:  grid, grid-layout, sass
Flexbox
CSS library for easier work with flex boxes
Stars: ✭ 17 (-90.61%)
Mutual labels:  grid-layout, sass, flexbox
Personal Goals
List of books I've read, projects I've done, videos I've seen, articles I've read or podcasts I've listened to.
Stars: ✭ 75 (-58.56%)
Mutual labels:  grid-layout, sass, flexbox
Lemon
πŸ‹ Minimal and responsive CSS framework for fast building websites.
Stars: ✭ 51 (-71.82%)
Mutual labels:  grid, sass, flexbox
Flexible Grid
Flexible grid layouts to get you familiar with building within the flexible grid system.(HTML, CSS, SASS, SCSS)
Stars: ✭ 154 (-14.92%)
Mutual labels:  grid, sass, flexbox
React Flexa
Responsive React Flexbox (CSS Flexible Box Layout Module) grid system based heavily on the standard CSS API.
Stars: ✭ 120 (-33.7%)
Mutual labels:  grid, flexbox
Baseguide
Lightweight and robust CSS framework for prototyping and production code.
Stars: ✭ 127 (-29.83%)
Mutual labels:  grid, sass
Popo
PoPo is the grid layout tool, the best choice for runtime layout.
Stars: ✭ 130 (-28.18%)
Mutual labels:  grid, grid-layout
Genesis Starter Theme
A starter theme for the Genesis Framework with a modern development workflow
Stars: ✭ 141 (-22.1%)
Mutual labels:  sass, flexbox
Php Sf Flex Webpack Encore Vuejs
A simple app skeleton to try to make every components work together : symfony 4 (latest stable at the date, but work with sf 3.3+ if you just change the versions in composer.json), symfony/flex, webpack-encore, vuejs 2.5.x, boostrap 4 sass
Stars: ✭ 118 (-34.81%)
Mutual labels:  bootstrap, sass
Css Progress Wizard
[NOT MAINTAINED] A pure flexbox+sass progress indicator
Stars: ✭ 129 (-28.73%)
Mutual labels:  sass, flexbox
Snack
🍱 A minimal CSS framework for web.
Stars: ✭ 117 (-35.36%)
Mutual labels:  grid-layout, sass
Shards Ui
🎨Shards is a beautiful & modern Bootstrap 4 UI kit packed with extra templates and components.
Stars: ✭ 1,718 (+849.17%)
Mutual labels:  bootstrap, sass
Bulmaswatch
Themes for Bulma
Stars: ✭ 1,525 (+742.54%)
Mutual labels:  sass, flexbox
Basis
A lightweight responsive Sass/CSS framework based on flexible box.
Stars: ✭ 133 (-26.52%)
Mutual labels:  sass, flexbox
Grid
This package has moved and renamed
Stars: ✭ 2,079 (+1048.62%)
Mutual labels:  grid, flexbox
React Awesome Styled Grid
A responsive 8-point grid system layout for React using styled-components
Stars: ✭ 157 (-13.26%)
Mutual labels:  grid, grid-layout

ReactSimpleFlexGrid

npm version

A way to quickly add a Flexbox Grid Layout to your app πŸš€

Layout based on 12 Grids System.

demo

Basic Usage

  1. Install via npm and yarn

    npm i -S react-simple-flex-grid
    
    // or
    
    yarn add react-simple-flex-grid
    
  2. Import Row, Col and grid styles

    import { Row, Col } from 'react-simple-flex-grid';
    import "react-simple-flex-grid/lib/main.css";
    
  3. Enjoy

    <Row>
       <Col span={6}>Column</Col>
       <Col span={6}>Column</Col>
    </Row>
    

Imgur

Customize

Basic steps to customize grid.

Gutter 🌟

You can use the gutter (px) property of Row as grid spacing.

<Row gutter={40}>
   <Col span={4}>col-4</Col>
   <Col span={4}>col-4</Col>
   <Col span={4}>col-4</Col>
</Row>

Imgur

Column Offset πŸ˜ƒ

Offset can set the column to the right side.

<Row gutter={40}>
   <Col span={4} offset={4}>col-4</Col>
   <Col span={4}>col-4</Col>
</Row>

Imgur

Column Order πŸ€™

Order property can easily change column order.

<Row gutter={40}>
   <Col span={4} order={4}>4 col-4</Col>
   <Col span={4} order={3}>3 col-4</Col>
   <Col span={4} order={2}>2 col-4</Col>
   <Col span={4} order={1}>1 col-4</Col>
</Row>

Imgur

Column Sort 🀘

Flexbox params start, center, end, space-between and space-around can be passed to Row and sort columns inside.

<Row gutter={40} justify="start" align="top">
   <Col span={4}>col-4</Col>
   <Col span={4}>col-4</Col>
   <Col span={4}>col-4</Col>
</Row>

Imgur


<Row gutter={40} justify="center" align="bottom">
   <Col span={4}>col-4</Col>
   <Col span={4}>col-4</Col>
   <Col span={4}>col-4</Col>
</Row>

Imgur


<Row gutter={40} justify="end" align="middle">
   <Col span={4}>col-4</Col>
   <Col span={4}>col-4</Col>
   <Col span={4}>col-4</Col>
</Row>

Imgur

Responsive πŸ’«

Based on Bootstrap media queries here five dimensions: xs, sm, md, lg, xl.

<Row gutter={40}>
  <Col xs={2} sm={4} md={6} lg={8} xl={10}>xl-10</Col>
  <Col xs={10} sm={8} md={6} lg={4} xl={2}>xl-2</Col>
</Row>

Imgur

Exotic Responsive 🏝️

Span and offset property can be embedded into xs, sm, md, lg, xl such as xl = {{span: 10}}.

<Row gutter={40}>
  <Col xs={{ span: 6, offset: 2 }}>xs-6</Col>
  <Col span={4}>col-4</Col>
</Row>

Imgur

API

Row

Property Description Type Default
gutter grid spacing number 0
align the vertical alignment of the layout of flex: top middle bottom stretch string start
justify horizontal arrangement of the layout of flex: start end center space-around space-between string start

Col

Property Description Type Default
span the number of cells,0 corresponds to display: none number none
offset the number of cells to the left of the grid spacing, no cell in grid spacing number 0
order col number in the row number none
xs <768px and also default setting, could be a span value or a object contain above props number/object -
sm β‰₯768px, could be a span value or a object contain above props number/object -
md β‰₯992px, could be a span value or a object contain above props number/object -
lg β‰₯1200px, could be a span value or a object contain above props number/object -
xl β‰₯1600px, could be a span value or a object contain above props number/object -

How to test example locally ?

  1. git clone https://github.com/abraztsov/ReactSimpleFlexGrid.git
  2. cd ReactSimpleFlexGrid
  3. npm start
  4. Go to localhost:8080

Feature Requests / Find Bug ?

Have an idea for a package or a feature you'd love to see in ReactSimpleFlexGrid? Search for existing GitHub issues and join the conversation or create new!

FAQ

This component based on ant design grid. Huge thanks them for a such an awesome work.

Updates

You can see table for update information.

No. Version Breakdown Ket.
1. 1.0.1 First Release
2. 1.0.2 - Added autoprefixer
- Fixed Safari bug
3. 1.0.3 Removed unnecessary package
4. 1.1.0 Added order parameter
5. 1.3.0 Added stretch option to align property
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].