An open API service indexing awesome lists of open source software.

https://github.com/bahrus/xtal-match-media

Custom Element that watches for media matches
https://github.com/bahrus/xtal-match-media

Last synced: 4 months ago
JSON representation

Custom Element that watches for media matches

Awesome Lists containing this project

README

        

[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/xtal-match-media)

# \

Web component that watches for media matches and fires events when they happen.

This is similar to Polymer's [iron-media-query](https://www.webcomponents.org/element/@polymer/iron-media-query). xtal-match-media can partake in Polymer's binding.

Other alternatives are also available (the more the merrier):

> [lit-media-query](https://www.webcomponents.org/element/lit-media-query)

## Sample Syntax

```html

```

xtal-match-media also provides network connection and device memory information.

## Viewing Your Element

```
$ npm install
$ npm run start
```