feat: bob

This commit is contained in:
2025-04-10 00:59:28 -04:00
parent dfd6789aa9
commit e9c44cbc94
58 changed files with 1649 additions and 3104 deletions

View File

@ -1,9 +1,10 @@
<script lang="ts">
import { Button } from 'bits-ui';
import { cn } from '$lib/utils';
import type { MouseEventHandler } from 'svelte/elements';
import type { Snippet } from 'svelte';
type me = MouseEvent & { currentTarget: EventTarget & HTMLButtonElement; }
let {
className,
type,
@ -12,7 +13,7 @@
}: {
className?: string;
type?: 'submit' | 'reset' | 'button' | null;
onclick?: () => void;
onclick?: (e: me) => void;
children?: Snippet<[]>;
} = $props();
</script>
@ -23,8 +24,8 @@
'bg-sky text-crust focus:outline-sky flex w-fit cursor-pointer items-center justify-center rounded p-2 px-4 text-sm font-medium transition-all hover:brightness-120 focus:outline-2 focus:outline-offset-1',
className
)}
onclick={() => {
onclick?.();
onclick={(e: me) => {
onclick?.(e);
}}
>
{@render children?.()}