UNPKG

antd-password-input-strength

Version:
33 lines (32 loc) 1.03 kB
import { InputProps, InputRef } from "antd"; import React from "react"; export declare const defaultSettings: { colorScheme: { levels: string[]; noLevel: string; }; height: number; alwaysVisible: boolean; }; interface LevelChangeProps { onLevelChange?: (newLevel: number) => void; } export interface PasswordInputProps extends LevelChangeProps { settings?: PasswordInputSettings; } export declare const PasswordInput: React.ForwardRefExoticComponent<PasswordInputProps & Partial<InputProps> & React.RefAttributes<InputRef>>; interface PasswordStrengthIndicatorProps extends LevelChangeProps { input: string; settings: PasswordInputSettings; } export declare const PasswordStrengthIndicator: ({ input, settings, onLevelChange }: PasswordStrengthIndicatorProps) => JSX.Element; export interface PasswordInputSettings { colorScheme: ColorScheme; height: number; alwaysVisible: boolean; } export interface ColorScheme { levels: string[]; noLevel: string; } export {};