Skip to content

Commit 4b5acf6

Browse files
committed
fix
1 parent b6fd8a4 commit 4b5acf6

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/Ui/Input.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function icon(): static
2525
'xs' => 'size-4 my-1.5 mx-1.5 text-base',
2626
'sm' => 'size-5 p-0.5 my-1.5 mx-1.5',
2727
'base', 'md' => 'size-5 p-0.5 my-2 mx-2 text-base',
28-
'lg' => 'size-6 p-0.5 my-2 mx-2',
28+
'lg' => 'size-6 p-0.5 my-2 mx-2 text-lg',
2929
'xl' => 'size-7 p-0.5 my-2 mx-2',
3030
default => ''
3131
});
@@ -64,7 +64,8 @@ public function spacingIconLeft(): static
6464
'2xs' => '',
6565
'xs' => 'pl-7',
6666
'sm' => 'pl-8',
67-
'base', 'md', 'lg', 'xl' => 'pl-8',
67+
'base', 'md' => 'pl-8',
68+
'lg', 'xl' => 'pl-10',
6869
default => ''
6970
});
7071
}

workbench/resources/views/demo.blade.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,11 @@ class="w-full rounded hover:bg-gray-100" size="sm">
8787
</x-kit::switch>
8888
</div>
8989
<div class="flex items-center justify-center border-b">
90-
<x-kit::button color="white">
91-
Button
92-
</x-kit::button>
90+
<x-kit::input class="max-w-40" size="lg" color="white" placeholder="Search">
91+
<x-slot:icon>
92+
<iconify-icon icon="heroicons:magnifying-glass"></iconify-icon>
93+
</x-slot:icon>
94+
</x-kit::input>
9395
</div>
9496

9597
</div>

0 commit comments

Comments
 (0)