diff options
| author | l3wdfut4pwr <l3wdfut4pwr@gmail.com> | 2026-03-17 14:06:58 +0200 |
|---|---|---|
| committer | l3wdfut4pwr <l3wdfut4pwr@gmail.com> | 2026-03-17 14:06:58 +0200 |
| commit | 646c1168349643eb01db53b5e06bf986a16b86d7 (patch) | |
| tree | 1a47fed631b06179383ed75d1bacc3c6b785a974 /src/components/ui | |
| parent | 9edce4dfa5f7c4efecd0f39fb4fd4a4c9863fe6e (diff) | |
simple registration prototype
Diffstat (limited to 'src/components/ui')
| -rw-r--r-- | src/components/ui/inputfield.tsx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/components/ui/inputfield.tsx b/src/components/ui/inputfield.tsx index 40d5206..6b585a9 100644 --- a/src/components/ui/inputfield.tsx +++ b/src/components/ui/inputfield.tsx @@ -1,15 +1,12 @@ import { Input } from '@/components/ui/input'; +import React from 'react'; -interface InputFIeldProps { - placeholder: string; -} - -export function InputField({ placeholder }: InputFIeldProps) { +export function InputField(props: React.InputHTMLAttributes<HTMLInputElement>) { return ( <div className="rounded-[20px] border-violet border-[2px] h-[39px] flex items-center justify-between py-[10px] px-[20px]"> <Input - placeholder={placeholder} - className="w-full flex text-white placeholder:text-light-violet text-sm min-w-[270px] h-[19px]" + {...props} + className={`w-full flex text-white placeholder:text-light-violet text-sm min-w-[270px] h-[19px] ${props.className ?? ''}`} /> </div> ); |
