chore: lift components folder

This commit is contained in:
Eric Liu 2020-07-19 09:06:08 -07:00
commit 2200b29b92
301 changed files with 57 additions and 76 deletions

View file

@ -0,0 +1,27 @@
<script>
export let clicked = false;
export let light = false;
</script>
<!-- svelte-ignore a11y-missing-attribute -->
<a
class:bx--tile={true}
class:bx--tile--clickable={true}
class:bx--tile--is-clicked={clicked}
class:bx--tile--light={light}
{...$$restProps}
on:click
on:click={() => {
clicked = !clicked;
}}
on:keydown
on:keydown={({ key }) => {
if (key === ' ' || key === 'Enter') {
clicked = !clicked;
}
}}
on:mouseover
on:mouseenter
on:mouseleave>
<slot />
</a>