17 lines
474 B
TypeScript
17 lines
474 B
TypeScript
"use client";
|
|
|
|
import type { InputHTMLAttributes } from "react";
|
|
import { cn } from "@/lib/utils";
|
|
|
|
export function Input({ className, ...props }: InputHTMLAttributes<HTMLInputElement>) {
|
|
return (
|
|
<input
|
|
className={cn(
|
|
"h-8 rounded-md border border-[#39434b] bg-[#101316] px-2 text-xs text-[#f2f4f4] outline-none placeholder:text-[#6d747b] focus-visible:ring-2 focus-visible:ring-[#7dc8cf]/45",
|
|
className,
|
|
)}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|