azz / styled-css-grid

🍱 A tiny CSS grid layout for React
https://styled-css-grid.js.org/
MIT License
623 stars 42 forks source link

Add tag props to grid and cell components #42

Open wab opened 6 years ago

wab commented 6 years ago

As proposed in this issue https://github.com/azz/styled-css-grid/issues/41 ...

Which allows to do something like :

<Grid is="ul">
  <Cell is="li" width={3}>
    item 1
   </Cell>
   <Cell is="li" width={3}>
      item 2
    </Cell>
  </Grid>
azz commented 6 years ago

The lib doesn't have any docs? :(

wab commented 6 years ago

It's a "sublib" of styled-system ... https://github.com/jxnblk/styled-system/tree/master/clean-tag

jacob-fueled commented 4 years ago

@wab bump. would quite like the ability to specify the tag to which renders as it current either precludes semantic HTML or forces divitis.