react-styled-flexboxgrid icon indicating copy to clipboard operation
react-styled-flexboxgrid copied to clipboard

suggestion for clear style

Open goldenbearkin opened this issue 7 years ago • 1 comments

if dont support below responsively,

<Row start="xs" end="lg">

why don't make it defaults to "xs" and becomes

<Row start>

Above looks a lot clear, less boilerplate ! now, everytime i need to write

<Row start="xs">

goldenbearkin avatar Jun 16 '17 17:06 goldenbearkin

Mmh... Yes maybe it could be useful.

We could consider each prop of this kind as xs when strictly equal to true. It will produce a media query with min-width: 0, so the default.

All properties of this kind:

  • start
  • center
  • end
  • top
  • middle
  • bottom
  • around
  • between
  • first
  • last

I dont think that end === true should be interpreted to lg. It does not make sense.

LoicMahieu avatar Jun 19 '17 14:06 LoicMahieu