Skip to content

Instantly share code, notes, and snippets.

@zzarcon
Last active January 4, 2017 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zzarcon/ccc1ac3253321f4d3265d1273d38600d to your computer and use it in GitHub Desktop.
Save zzarcon/ccc1ac3253321f4d3265d1273d38600d to your computer and use it in GitHub Desktop.
Tags component registration
/** @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