Skip to content

Scheduling infrastructure for absolutely everyone.

Add placeholder (#4803)

Joe Au-Yeungd241a522fb63
diff --git a/packages/ui/v2/core/form/fields.tsx b/packages/ui/v2/core/form/fields.tsx
index dc8fb3d8b72..16314158ba1 100644
--- a/packages/ui/v2/core/form/fields.tsx
+++ b/packages/ui/v2/core/form/fields.tsx
@@ -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)}