This is a work in progress, and my first package, thank you
I'm working on a card game project if you're interested in following along, I'm on a journey learning as much as possible. The card game project docs are here and the game should be up soon!
<script lang="ts">
import "./app.css";
import { onDestroy } from "svelte";
import * as Bicycle from "svelte-bicycle";
const deck = Bicycle.Deck;
onDestroy(() => {
deck.reset();
});
deck.createCards(2, { pair: true });
</script>
<div class="columns-5">
{#each deck as [id, card]}
<Bicycle.Card
on:click="{() => card.flip()}"
store="{card.store}"
/>
{/each}
</div>