emoji-element
v1.0.2
Published
emoji-element Web Components & Custom Elements
Downloads
2
Maintainers
Readme
emoji-element
Web Components & Custom Elements
- ufo-element / ufo-element-🛸
- ghost-element / ghost-element-👻
- shit-element / shit-element-💩
usage
normal version
<ufo-element>🛸</ufo-element>
<ghost-element>👻</ghost-element>
<shit-element>💩</shit-element>
emoji version
<ufo-element-🛸>🛸</ufo-element-🛸>
<ghost-element-👻>👻</ghost-element-👻>
<shit-element-💩>💩</shit-element-💩>
📦 Load it!
<!-- CDN -->
<script async type="module" src="https://unpkg.com/emoji-elements/src/index.js"></script>
<!-- npm -->
<script async type="module" src="/node_modules/emoji-elements/src/index.js"></script>
<!-- ES Module -->
<script type="module">
import '/node_modules/emoji-elements/src/index.js';
// ...
</script>
💪 Use it!
<emoji-element text="👻🛸💩" alt="Emoji Element">
<span slot="placeholder">👻🛸💩</span>
</emoji-element>
live demo
<other-element></other-element>
<my-element></my-element>
<script src="../webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="paper-progress.html">
<style is="custom-style">
paper-progress {
display: block;
width: 100%;
margin: 20px 0;
}
</style>
<paper-progress indeterminate></paper-progress>
npm
https://www.npmjs.com/package/emoji-element
custom element
https://www.webcomponents.org/element/emoji-element