Primitives / Media

foldkit-primitives/media

What the browser says about its surroundings: a media query's answer, the viewport's breakpoint, the platform. Each is a fact the parent Model keeps and the browser corrects. (source)

NameFormModelMessagesArgs
MediaQuerybundle{ matches }Changed { matches }{ query }
PrefersDark, PrefersReducedMotionbundle, preset{ matches }Changednone
Breakpointsbundle{ width, breakpoint }Changed { width }{ breakpoints }
breakpointFor(width, table)function
platformFromUA(ua, hints?)function
isBrowser(), isServer()function