mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-11-04 00:00:28 +09:00
Button 컴포넌트 전체에 클릭시 작아지는 애니메이션 적용
This commit is contained in:
1 parent
0998d0662e
commit
c709a79266
1 file changed
+6
-3
@@ -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