webui-ng/src/lib/components/form/CurrencyButton.svelte
Djuri Baars 5917713b0d
Some checks failed
/ check-changes (push) Successful in 7s
/ build (push) Failing after 1m18s
feat: Lint fixes, add forgejo workflow and e2e tests
2025-05-03 18:45:32 +02:00

11 lines
238 B
Svelte

<script lang="ts">
let { currency, active = false, onClick, ...restProps } = $props();
</script>
<button
class="btn join-item {active ? 'btn-primary' : 'btn-outline'} btn-xs"
on:click={onClick}
{...restProps}
>
{currency}
</button>