|
|
@ -3,6 +3,8 @@ import { TextInputControl } from "./TextInputControl"; |
|
|
|
export function AuthInputBox(props: { |
|
|
|
export function AuthInputBox(props: { |
|
|
|
value?: string; |
|
|
|
value?: string; |
|
|
|
label?: string; |
|
|
|
label?: string; |
|
|
|
|
|
|
|
name?: string; |
|
|
|
|
|
|
|
autoComplete?: string; |
|
|
|
placeholder?: string; |
|
|
|
placeholder?: string; |
|
|
|
onChange?: (data: string) => void; |
|
|
|
onChange?: (data: string) => void; |
|
|
|
}) { |
|
|
|
}) { |
|
|
@ -12,7 +14,9 @@ export function AuthInputBox(props: { |
|
|
|
<p className="font-bold text-white">{props.label}</p> |
|
|
|
<p className="font-bold text-white">{props.label}</p> |
|
|
|
) : null} |
|
|
|
) : null} |
|
|
|
<TextInputControl |
|
|
|
<TextInputControl |
|
|
|
|
|
|
|
name={props.name} |
|
|
|
value={props.value} |
|
|
|
value={props.value} |
|
|
|
|
|
|
|
autoComplete={props.autoComplete} |
|
|
|
onChange={props.onChange} |
|
|
|
onChange={props.onChange} |
|
|
|
placeholder={props.placeholder} |
|
|
|
placeholder={props.placeholder} |
|
|
|
className="w-full flex-1 bg-authentication-inputBg px-4 py-3 text-search-text focus:outline-none rounded-lg placeholder:text-gray-700" |
|
|
|
className="w-full flex-1 bg-authentication-inputBg px-4 py-3 text-search-text focus:outline-none rounded-lg placeholder:text-gray-700" |
|
|
|