viskan-deku-media-query

1.0.7 • Public • Published

deku-media-query

Media query component for Deku

Install

$ npm install --save deku-media-query

Usage

import MediaQuery from 'deku-media-query';
 
const render = () => {
    return (
        <MediaQuery query='(min-width: 1280px)' class='Unicorn'>
            <div><img src='cat.jpg' alt=''/></div>
            <div><img src='unicorn.jpg' alt=''/></div>
        </MediaQuery>
    );
};
 
export default {render};

License

MIT © Viskan Distanshandel System AB

Package Sidebar

Install

npm i viskan-deku-media-query

Weekly Downloads

2

Version

1.0.7

License

MIT

Last publish

Collaborators

  • gillstrom
  • alonalon
  • anton-johansson
  • henrikpeszlen