Skip to content

Here are the options...

Latest
Compare
Choose a tag to compare
@thearnica thearnica released this 29 Jun 22:57
· 47 commits to master since this release

New features

  • build-in matchers
// prebuild
import {
  breakpoints,
  orientation,
  darkMode,
  hover,
  reducedMotion,
  // what else?
} from 'react-media-match/targets';

// ...
orientation.useMedia({
  portrait: '📱',
  landscape: '💻', // (well, actually not, but yes)
});

Features

  • allow default matches (6715736)
  • tighten types using first key property (2a2cba2)