2025-05-18 13:18:46 +02:00
|
|
|
<script>
|
|
|
|
import { Command as CommandPrimitive } from "bits-ui";
|
2025-05-19 15:00:16 +02:00
|
|
|
import Search from "@lucide/svelte/icons/search";
|
2025-05-18 13:18:46 +02:00
|
|
|
import { cn } from "$lib/utils.js";
|
|
|
|
|
|
|
|
let { ref = $bindable(null), class: className, value = $bindable(""), ...restProps } = $props();
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<div class="flex items-center border-b px-2" data-command-input-wrapper="">
|
|
|
|
<Search class="mr-2 size-4 shrink-0 opacity-50" />
|
|
|
|
<CommandPrimitive.Input
|
|
|
|
class={cn(
|
2025-05-19 15:00:16 +02:00
|
|
|
"flex h-11 w-full rounded-md bg-transparent py-3 text-base outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
2025-05-18 13:18:46 +02:00
|
|
|
className,
|
|
|
|
)}
|
|
|
|
bind:ref
|
|
|
|
{...restProps}
|
|
|
|
bind:value
|
|
|
|
/>
|
|
|
|
</div>
|