Closed flexdinesh closed 5 years ago
Using #17 you can write your own logic.
@dbryantm Since you mentioned in the other issue that you're interested in new things in this lib, we've been meaning to add this feature for a while. Would be super interesting if this lib could accept breakpoints on the fly and render based on it.
@flexdinesh sure, I can try and take a look at this. So if I have this correct, you want it only to take effect when there's no breakpoint modifiers like <Breakpoint sm down/>
otherwise they will supersede the customQuery
?
@dbryantm That's right. Ideally when a customQuery
is passed we shouldn't parse the breakpoints. If breakpoints are passed as props, we can ignore them.
We could make use of
matchMedia
to pass in custom media queriesA syntax like this would be really convenient
small
,medium
, etc.