Button 컴포넌트 전체에 클릭시 작아지는 애니메이션 적용

This commit is contained in:
static
2025-01-25 23:43:52 +09:00
parent 0998d0662e
commit c709a79266

View File

@@ -27,9 +27,12 @@
<button
onclick={onclick && (() => setTimeout(onclick, 100))}
class={["h-12 min-w-fit rounded-xl font-medium", bgColor, textColor, props.class]}
class={[
"h-12 min-w-fit rounded-xl p-3 font-medium transition active:scale-95",
bgColor,
textColor,
props.class,
]}
>
<div class="h-full p-3 transition active:scale-95">
{@render children?.()}
</div>
{@render children?.()}
</button>