cobalt/web/src/components/donate/DonationOption.svelte

25 lines
495 B
Svelte
Raw Normal View History

<script lang="ts">
export let price: number;
export let desc: string;
export let click: () => void;
</script>
<button class="donation-option" on:click={click}>
<div class="donation-title">
<slot></slot>
${price}
</div>
<div class="donation-subtitle">{desc}</div>
</button>
<style>
.donation-option .donation-subtitle {
white-space: nowrap;
}
.donation-option :global(svg) {
width: 20px;
height: 20px;
}
</style>