feat: add ui components

This commit is contained in:
2026-08-27 21:10:25 +05:00
parent ac75665deb
commit 8437c95a28
14 changed files with 584 additions and 2 deletions
@@ -0,0 +1,23 @@
<script lang="ts">
import { Download } from "@lucide/svelte";
import Button from "./Button.svelte";
interface Props {
label: string;
size?: string;
onclick?: () => void;
}
let { label, size, onclick }: Props = $props();
</script>
<Button icon={Download} variant="primary" onclick={() => onclick?.()}>
{label}{#if size}<span class="dl-size">{size}</span>{/if}
</Button>
<style>
.dl-size {
font-family: var(--font-mono);
font-size: 10px;
opacity: 0.8;
}
</style>