From a079ba897bf1310966f8f64b35ee39270f7eb482 Mon Sep 17 00:00:00 2001 From: Vula Builder Date: Sat, 1 Aug 2026 16:13:33 +0000 Subject: [PATCH] Deploy --- src/components/ui/Input.tsx | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/components/ui/Input.tsx diff --git a/src/components/ui/Input.tsx b/src/components/ui/Input.tsx new file mode 100644 index 0000000..c889bc5 --- /dev/null +++ b/src/components/ui/Input.tsx @@ -0,0 +1,40 @@ +import * as React from 'react' +import { cn } from '@/lib/utils' + +export interface InputProps extends React.InputHTMLAttributes { + label?: string + error?: string +} + +const Input = React.forwardRef( + ({ className, label, error, id, ...props }, ref) => { + const inputId = id || label?.toLowerCase().replace(/\s+/g, '-') + return ( +
+ {label && ( + + )} + + {error &&

{error}

} +
+ ) + } +) +Input.displayName = 'Input' + +export { Input } +export default Input