Skip to content

Commit 1982a4e

Browse files
committed
prettier
1 parent df4def4 commit 1982a4e

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed
Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<script lang="ts">
2-
import { SearchIcon } from 'lucide-svelte';
2+
import { SearchIcon } from 'lucide-svelte';
33
import { twMerge } from 'tailwind-merge';
4-
5-
interface Props {
4+
5+
interface Props {
66
onChange: (value: string) => void;
77
class?: string;
88
}
99
10-
let { onChange, class: klass }: Props = $props();
10+
let { onChange, class: klass }: Props = $props();
1111
let searchTimeout: ReturnType<typeof setTimeout>;
1212
13-
function search(e: Event) {
13+
function search(e: Event) {
1414
const value = (e.target as HTMLInputElement).value;
1515
1616
// Clear previous timeout
@@ -22,14 +22,16 @@
2222
}, 300);
2323
}
2424
</script>
25+
2526
<div class="relative mb-8 w-full">
26-
<input
27-
type="text"
28-
placeholder="Search Obots..."
29-
class={twMerge("peer w-full rounded-xl border-none bg-surface1 px-2.5 py-4 pl-12 focus:outline-none focus:ring-2 focus:ring-blue-500 hover:ring-blue-500 hover:ring-2 transition-all duration-200 ring-2 ring-transparent", klass)}
30-
oninput={search}
31-
/>
32-
<SearchIcon
33-
class="absolute left-4 top-1/2 -translate-y-1/2 text-gray peer-focus:text-blue-500"
34-
/>
35-
</div>
27+
<input
28+
type="text"
29+
placeholder="Search Obots..."
30+
class={twMerge(
31+
'peer w-full rounded-xl border-none bg-surface1 px-2.5 py-4 pl-12 ring-2 ring-transparent transition-all duration-200 hover:ring-2 hover:ring-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500',
32+
klass
33+
)}
34+
oninput={search}
35+
/>
36+
<SearchIcon class="absolute left-4 top-1/2 -translate-y-1/2 text-gray peer-focus:text-blue-500" />
37+
</div>

0 commit comments

Comments
 (0)