Spaces:
Running
Running
Create frontend/src/components/ui/input.jsx
Browse files
frontend/src/components/ui/input.jsx
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import React from "react";
|
| 2 |
+
import { cn } from "@/lib/utils";
|
| 3 |
+
|
| 4 |
+
export function Input({ className, ...props }) {
|
| 5 |
+
return (
|
| 6 |
+
<input
|
| 7 |
+
className={cn(
|
| 8 |
+
"flex h-10 w-full rounded-md border border-slate-200 bg-white px-3 py-2 text-sm text-slate-900 shadow-sm placeholder:text-slate-400 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
| 9 |
+
className
|
| 10 |
+
)}
|
| 11 |
+
{...props}
|
| 12 |
+
/>
|
| 13 |
+
);
|
| 14 |
+
}
|