feat(component): add Icon

Closes #30
This commit is contained in:
Eric Liu 2019-12-22 15:33:55 -08:00
commit 5ae12066fb
18 changed files with 193 additions and 88 deletions

View file

@ -0,0 +1,13 @@
<script>
let className = undefined;
export { className as class };
export let size = 16;
export let style = undefined;
import { cx, css } from '../../lib';
const _class = cx('--icon--skeleton', className);
const _style = css([style, ['width', `${size}px`], ['height', `${size}px`]]);
</script>
<div on:click on:mouseover on:mouseenter on:mouseleave class={_class} style={_style} />