Last active
January 4, 2017 22:19
-
-
Save zzarcon/ccc1ac3253321f4d3265d1273d38600d to your computer and use it in GitHub Desktop.
Tags component registration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @jsx h */ | |
import 'skatejs-web-components'; | |
import { Component, h, prop } from 'skatejs'; | |
import styles from './styles'; | |
class SKTags extends Component { | |
static props = { | |
delimiter: prop.string({attribute: true, default: ' '}) | |
} | |
renderCallback() { | |
return <div> | |
<style>{styles}</style> | |
<div class="wrapper"> | |
<span class="tags"></span> | |
<input type="text" autofocus="true" class="input"/> | |
</div> | |
</div> | |
} | |
} | |
customElements.define('sk-tags', SKTags); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment