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)
| Name | Form | Model | Messages | Args |
|---|---|---|---|---|
MediaQuery | bundle | { matches } | Changed { matches } | { query } |
PrefersDark, PrefersReducedMotion | bundle, preset | { matches } | Changed | none |
Breakpoints | bundle | { width, breakpoint } | Changed { width } | { breakpoints } |
breakpointFor(width, table) | function | |||
platformFromUA(ua, hints?) | function | |||
isBrowser(), isServer() | function |