Skip to content

Build in responsive breakpoints #3

@azz

Description

@azz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions