[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/bahrus/swag-tag)

<a href="https://nodei.co/npm/swag-tag/"><img src="https://nodei.co/npm/swag-tag.png"></a>

<img src="https://badgen.net/bundlephobia/minzip/swag-tag">

# swag-tag

swag-tag is an old-fashioned custom element designed to demo and edit other web components.

It requires that the web component exposes a json definition file for the web component, following the format [generated by this tool](https://github.com/runem/web-component-analyzer).

## Syntax

<swag-tag-mwc href=../mwc-textfield-example1.json tag=mwc-textfield-example1></swag-tag-mwc>

## [Demo](https://jsfiddle.net/bahrus/mdysp1ab/1/)



swag-tag is delighted to discover [activity going on](https://github.com/webcomponents/webcomponents.org/issues/1250)  along the [same lines](https://github.com/PolymerLabs/code-sample-editor).  



<!-- 
https://github.com/search?p=3&q=filename%3Acustom-elements.json+path%3A%2F&type=Code
-->