Files
ai-ticket-platform/frontend/src/components/ui/input.tsx
2026-07-16 17:20:45 +08:00

20 lines
810 B
TypeScript

import * as React from "react"
import { cn } from "@/lib/utils"
function Input({ className, type, ...props }: React.ComponentProps<"input">) {
return (
<input
type={type}
data-slot="input"
className={cn(
"h-9 w-full min-w-0 rounded-lg border border-input bg-card/80 px-3 py-1 text-base shadow-sm shadow-foreground/[0.02] outline-none transition-all file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:bg-card focus-visible:ring-3 focus-visible:ring-ring/15 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 md:text-sm",
className
)}
{...props}
/>
)
}
export { Input }