feat: go to block (#91)

This commit is contained in:
Josep M Sobrepere
2025-10-20 09:38:40 +02:00
committed by GitHub
parent a3378df16b
commit 334b232d40
6 changed files with 101 additions and 13 deletions
+21
View File
@@ -0,0 +1,21 @@
import { Search } from "lucide-react"
import { cn } from "@/lib/utils"
import { forwardRef } from "react"
export const SearchInput = forwardRef<
HTMLInputElement,
Omit<React.ComponentProps<"input">, "type">
>(({ className, ...props }, ref) => (
<div className="flex items-center border-b px-3" cmdk-input-wrapper="">
<Search className="mr-2 h-4 w-4 shrink-0 opacity-50" />
<input
type="text"
ref={ref}
className={cn(
"flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
className,
)}
{...props}
/>
</div>
))