diff --git a/src/components/ui/Input.tsx b/src/components/ui/Input.tsx new file mode 100644 index 0000000..2d32ee4 --- /dev/null +++ b/src/components/ui/Input.tsx @@ -0,0 +1,28 @@ +'use client' + +import React from 'react' +import { cn } from "@/lib/utils" + +interface InputProps extends React.InputHTMLAttributes { + error?: string +} + +export default function Input({ className, error, ...props }: InputProps) { + return ( +
+ + {error && ( +

{error}

+ )} +
+ ) +} \ No newline at end of file