roylee0704 / react-flexbox-grid

A set of React components implementing flexboxgrid with the power of CSS Modules.
http://roylee0704.github.io/react-flexbox-grid/
2.93k stars 206 forks source link

default props on xs, sm, md, lg #113

Open eduardoinnorway opened 7 years ago

eduardoinnorway commented 7 years ago

You should have default value to 12 on all sizes, else you need to write all the props all the time.

<Col lg={6}>foo</Col>

This should automatically give you xs, sm, md = 12.

How it is today, the Col becomes a div with inline-block on the not set props, and it looks strange when expecting responsive layout.

jacargentina commented 6 years ago

@eduardoinnorway try https://jacargentina.github.io/react-flexbox-grid/ for this feature