pstream is dead; long live pstream taciturnaxolotl.github.io/pstream-ng/
at main 31 lines 923 B view raw
1import classNames from "classnames"; 2 3import { TextInputControl } from "./TextInputControl"; 4 5export function AuthInputBox(props: { 6 value?: string; 7 label?: string; 8 name?: string; 9 autoComplete?: string; 10 placeholder?: string; 11 onChange?: (data: string) => void; 12 passwordToggleable?: boolean; 13 className?: string; 14}) { 15 return ( 16 <div className={classNames("space-y-3", props.className)}> 17 {props.label ? ( 18 <p className="font-bold text-white">{props.label}</p> 19 ) : null} 20 <TextInputControl 21 name={props.name} 22 value={props.value} 23 autoComplete={props.autoComplete} 24 onChange={props.onChange} 25 placeholder={props.placeholder} 26 passwordToggleable={props.passwordToggleable} 27 className="w-full flex-1 bg-authentication-inputBg px-4 py-3 text-search-text focus:outline-none rounded-lg placeholder:text-gray-700" 28 /> 29 </div> 30 ); 31}