Skip to content

Instantly share code, notes, and snippets.

@dillonchanis
Created April 8, 2018 21:55
Show Gist options
  • Save dillonchanis/5d56c4d492de71e39f9357f585a533b8 to your computer and use it in GitHub Desktop.
Save dillonchanis/5d56c4d492de71e39f9357f585a533b8 to your computer and use it in GitHub Desktop.
Idea for a media query component...how would I want this to work
<template>
<div>
<!-- Show acts as if you are setting display: block, flex, etc. -->
<media-query max-width at="768" show>
Hello World
</media-query>
<!-- Hide acts if you are setting display: hidden -->
<media-query max-width at="992" hide>
Hidden at 992 and above
</media-query>
</div>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment