@papernote/ui
Version:
A modern React component library with a paper notebook aesthetic - minimal, professional, and expressive
33 lines • 939 B
TypeScript
export interface PasswordInputHandle {
focus: () => void;
blur: () => void;
}
export interface PasswordStrength {
score: number;
label: string;
color: string;
feedback: string[];
}
export interface PasswordInputProps {
value: string;
onChange: (value: string) => void;
label?: string;
placeholder?: string;
required?: boolean;
disabled?: boolean;
error?: string;
helperText?: string;
showStrength?: boolean;
showRequirements?: boolean;
requirements?: {
minLength?: number;
requireUppercase?: boolean;
requireLowercase?: boolean;
requireNumber?: boolean;
requireSpecial?: boolean;
};
className?: string;
}
declare const PasswordInput: import("react").ForwardRefExoticComponent<PasswordInputProps & import("react").RefAttributes<PasswordInputHandle>>;
export default PasswordInput;
//# sourceMappingURL=PasswordInput.d.ts.map