stashing code

This commit is contained in:
user
2025-10-20 17:07:41 +03:00
commit f5b99afc8f
890 changed files with 54823 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<script lang="ts">
import Icon from "$lib/components/atoms/icon.svelte";
import Button from "$lib/components/ui/button/button.svelte";
import PlusIcon from "~icons/lucide/plus";
import MinusIcon from "~icons/lucide/minus";
let { value = $bindable() }: { value: number } = $props();
</script>
<div class="flex items-center justify-between gap-2">
<Button
size="iconSm"
onclick={() => {
if (value <= 0) {
value = 0;
return;
}
value = value - 1;
}}
>
<Icon icon={MinusIcon} />
</Button>
<span class="p-2">{value}</span>
<Button size="iconSm" onclick={() => (value = value + 1)}>
<Icon icon={PlusIcon} />
</Button>
</div>