# @npm-polymer/iron-media-query

> Lets you bind to a CSS media query

Latest version **1.0.8** (published 2017-06-03) · http://polymer.github.io/LICENSE.txt license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @npm-polymer/iron-media-query
pnpm add @npm-polymer/iron-media-query
yarn add @npm-polymer/iron-media-query
bun add @npm-polymer/iron-media-query
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2017-06-03 |
| First published | 2017-06-03 |
| Weekly downloads | 0 |
| License | http://polymer.github.io/LICENSE.txt |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 25 |
| Maintainers | npm-polymer |
| Keywords | web-components, polymer, media |

## Links

- npm: https://www.npmjs.com/package/@npm-polymer/iron-media-query
- Repository: https://github.com/PolymerElements/iron-media-query
- Issues: https://github.com/PolymerElements/iron-media-query/issues
- npm.io page: https://npm.io/package/@npm-polymer/iron-media-query

## Dependencies (1)

- [@npm-polymer/polymer](https://npm.io/package/@npm-polymer/polymer.md) 2.0.1

## Recent versions

- 1.0.8 (latest) — 2017-06-03

## README

<!---

This README is automatically generated from the comments in these files:
iron-media-query.html

Edit those files, and our readme bot will duplicate them over here!
Edit this file, and the bot will squash your changes :)

-->

[![Build Status](https://travis-ci.org/PolymerElements/iron-media-query.svg?branch=master)](https://travis-ci.org/PolymerElements/iron-media-query)

_[Demo and API Docs](https://elements.polymer-project.org/elements/iron-media-query)_


##&lt;iron-media-query&gt;


`iron-media-query` can be used to data bind to a CSS media query.
The `query` property is a bare CSS media query.
The `query-matches` property is a boolean representing whether the page matches that media query.

Example:

    <iron-media-query query="(min-width: 600px)" query-matches="{{queryMatches}}"></iron-media-query>

---
_Source: https://npm.io/package/@npm-polymer/iron-media-query · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
