Closed droege closed 10 months ago
Hey, yep that'd be nice to have layout component, I was planning on doing that at some point in a future release. Please make a pull request to this repo, it would be easier for me to review it.
Cheers
Done in v1.2.0
I thought it might be nice to have
<Row>
and<Col>
components for using the grid organically in Svelte.I took the liberty of making a proposal here.
<Row>
has these boolean props which translate to the respective "flex-xxx" classes:right, center, edges, spaces, top, middle, bottom
<Col>
has similar boolean props (fill, top, middle, bottom
), and additionally accepts props on how wide the column should be (col
, orsm, md, lg
). These can be given as strings (col="4"
) or numbers (col={3}
).The implementation is inspired by carbon-components-svelte.
This is my first attempt at a contribution to a project on Github, so I'm happy to get feedback or be pointed in the right direction.