컴포넌트 관련 사소한 리팩토링

This commit is contained in:
static
2025-01-27 20:17:20 +09:00
parent 7230810f3a
commit acb6e1ac6e
22 changed files with 70 additions and 50 deletions

View File

@@ -9,7 +9,7 @@
onclick?: () => void;
}
let { children, color = "primary", onclick, ...props }: Props = $props();
let { children, class: className, color = "primary", onclick }: Props = $props();
let bgColor = $derived(
{
@@ -31,7 +31,7 @@
"h-12 min-w-fit rounded-xl p-3 font-medium transition active:scale-95",
bgColor,
textColor,
props.class,
className,
]}
>
{@render children?.()}