update auto fill
All checks were successful
Build and Release / release (push) Successful in 27s

This commit is contained in:
2026-04-23 18:30:28 +07:00
parent 7013b93c53
commit 226abba5ed
2 changed files with 5 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ interface InputProps {
success?: boolean;
error?: boolean;
hint?: string; // Optional hint text
autoComplete?: string;
}
const Input: FC<InputProps> = ({
@@ -32,6 +33,7 @@ const Input: FC<InputProps> = ({
success = false,
error = false,
hint,
autoComplete
}) => {
// Determine input styles based on state (disabled, success, error)
let inputClasses = `h-11 w-full rounded-lg border appearance-none px-4 py-2.5 text-sm shadow-theme-xs placeholder:text-gray-400 focus:outline-hidden focus:ring-3 dark:bg-gray-900 dark:text-white/90 dark:placeholder:text-white/30 dark:focus:border-brand-800 ${className}`;
@@ -61,6 +63,7 @@ const Input: FC<InputProps> = ({
step={step}
disabled={disabled}
className={inputClasses}
autoComplete={autoComplete}
/>
{/* Optional Hint Text */}