lightswind
Version:
A collection of beautifully crafted React Components, Blocks & Templates for Modern Developers. Create stunning web applications effortlessly by using our 160+ professional and animated react components.
46 lines • 1.36 kB
TypeScript
import { InputProps } from "./input";
export type StrengthLevel = "empty" | "weak" | "medium" | "strong" | "very-strong";
export interface PasswordStrengthIndicatorProps {
/**
* The value of the password input
*/
value: string;
/**
* Class name for the container
*/
className?: string;
/**
* Label text for the password field
*/
label?: string;
/**
* Show strength score as text
*/
showScore?: boolean;
/**
* Show strength score as number
*/
showScoreNumber?: boolean;
/**
* Function called when password changes
*/
onChange?: (value: string) => void;
/**
* Function called when strength level changes
*/
onStrengthChange?: (strength: StrengthLevel) => void;
/**
* Placeholder text for input
*/
placeholder?: string;
/**
* Show toggle for password visibility
*/
showVisibilityToggle?: boolean;
/**
* Additional props for the input element
*/
inputProps?: InputProps;
}
export declare function PasswordStrengthIndicator({ value, className, label, showScore, showScoreNumber, onChange, onStrengthChange, placeholder, showVisibilityToggle, inputProps, }: PasswordStrengthIndicatorProps): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=password-strength-indicator.d.ts.map