Module

isSmallerThanBreakpoint

Check if the given windowWidth is smaller than the breakpoint
Parameters:
Name Type Description
windowWidth usually use with hook `useWindowSize`
breakpoint (optional) can be number, "100%" or "". Default "" If "100%", always return true, is smaller than breakpoint If "", check with param `min`
min (optional) minimum breakpoint. Default 0 Use if want to ensure return true if smaller than `min` no matter what `breakpoint` is If both `breakpoint` and `min` are not provided, will return false

View Source style/isSmallerThanBreakpoint.js, line 7