mirror of
https://github.com/kmc7468/arkvault.git
synced 2025-12-14 22:08:45 +00:00
Button 컴포넌트 전체에 클릭시 작아지는 애니메이션 적용
This commit is contained in:
@@ -27,9 +27,12 @@
|
|||||||
|
|
||||||
<button
|
<button
|
||||||
onclick={onclick && (() => setTimeout(onclick, 100))}
|
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?.()}
|
||||||
{@render children?.()}
|
|
||||||
</div>
|
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user