refactor(tile): forward events, inline functions

Supports #7, #34

- Forward events, style prop
- Remove unneeded dispatched events
- Remove exported props
This commit is contained in:
Eric Liu 2019-12-20 04:16:50 -08:00
commit a828218d15
9 changed files with 87 additions and 75 deletions

View file

@ -1,7 +1,14 @@
<script>
import { cx } from '../../lib';
export let style = undefined;
</script>
<span class={cx('--tile-content__above-the-fold')}>
<span
on:click
on:mouseover
on:mouseenter
on:mouseleave
class={cx('--tile-content__above-the-fold')}
{style}>
<slot />
</span>