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

How to add custom class to Col/Row/Container #54

Closed pavel06081991 closed 7 years ago

pavel06081991 commented 8 years ago

I want to add some additional styles to tag which is Col or Row or Container but it seems there are not opportunity to pass my custom css class to these components. It would be great to add this functionality:

this.myCustomCssClass = 'abc';

<Col xs={6} md={3} customClass={this.myCustomCssClass}>Hello, world!</Col>
Nathan-Schwartz commented 8 years ago

This is possible with the standard className property: <Col className={customClass}> </Col>