Add placeholder (#4803)

Co-authored-by: Bailey Pumfleet <[email protected]>
This commit is contained in:
Joe Au-YeungandBailey Pumfleet authored and GitHub committed 2022-10-04 10:20:21 +01:00
1 parent ae929f27b0
commit d241a522fb
1 file changed
+1 -1
+1 -1
View File
@@ -262,7 +262,7 @@ export const PasswordField = forwardRef<HTMLInputElement, InputFieldProps>(funct
<div className="relative [&_.group:hover_.addon-wrapper]:border-gray-400 [&_.group:focus-within_.addon-wrapper]:border-neutral-300">
<InputField
type={isPasswordVisible ? "text" : "password"}
placeholder={isPasswordVisible ? "0hMy4P4ssw0rd" : "•••••••••••••"}
placeholder={props.placeholder || "•••••••••••••"}
ref={ref}
{...props}
className={classNames("mb-0 border-r-0 pr-10", props.className)}