-
Notifications
You must be signed in to change notification settings - Fork 41
Closed
Description
Currently in order to be responsive to device width, you must change the columns
prop of the <Grid />
component based on the width yourself.
We could add an API to specify breakpoints, that might look something like:
<Grid columns={[
2,
["(min-width: 400px)", 3],
["(min-width: 800px)", 4]
]}>
<Cell>A</Cell><Cell>B</Cell>
<Cell>C</Cell><Cell>D</Cell>
</Grid>
This way we could use efficient @media
rules rather than observing onresize
events.