mg901/styled-breakpoints

`xs: 0px` cannot be assigned as minimum breakpoint.

Closed this issue · 4 comments

Then why is it in default Breakpoints if I can't write a regular piece of code

[up('xs')(props)]: { flexBasis: "calc(100% / 1)", },

[up('sm')(props)]: { flexBasis: "calc(100% / 2)", },

[up('md')(props)]: { flexBasis: "calc(100% / 3)", },

I don't want to write down('sm')

mg901 commented

@nedelyux Hi! (: I don't understand what do you want? Can you make an example for you case on Codesandbox?

@mg901 Sure. I have an error when use up('xs'). I want to get valid code when I think about styles from 0px to SM breakpoint, instead of down('sm')

https://codesandbox.io/s/crazy-oskar-levk0i?file=/src/App.js
https://levk0i.csb.app/

mg901 commented

@nedelyux Hi, do so.
Next time see an example here.

Thank you for your question.)

mg901 commented

@nedelyux you are right. Indeed, the behavior of the up function is not as expected.
Screenshot 2023-04-24 at 21 45 37