design: fix classvalue (#560)

This commit is contained in:
Xylight authored and GitHub committed 2025-06-09 20:57:55 -07:00
1 parent 76c581123a
commit 3d509a6e28
14 files changed
+106 -81

No files matched your search

+7 -6
View File
@@ -149,7 +149,7 @@
rounding = size == 'lg' ? 'xl' : 'lg',
roundingSide = 'all',
alignment = 'center',
shadow = 'none',
shadow = 'sm',
column = false,
disabled,
loaderWidth = undefined,
@@ -185,11 +185,12 @@
type={submit ? 'submit' : 'button'}
>
<div
class="flex {column
? 'flex-col justify-center'
: 'flex-row items-center'} h-full gap-1.5 button-content {buttonAlignment[
alignment
]}"
class={[
'flex',
column ? 'flex-col justify-center' : 'flex-row items-center',
'h-full gap-1.5 button-content',
buttonAlignment[alignment],
]}
>
{#if loading}
<Spinner width={loaderWidth ?? 16} />