UNPKG

545 BTypeScriptView Raw
1import * as React from 'react';
2import type { InputProps, InputRef } from './Input';
3type VisibilityToggle = {
4 visible?: boolean;
5 onVisibleChange?: (visible: boolean) => void;
6};
7export interface PasswordProps extends InputProps {
8 readonly inputPrefixCls?: string;
9 readonly action?: string;
10 visibilityToggle?: boolean | VisibilityToggle;
11 iconRender?: (visible: boolean) => React.ReactNode;
12}
13declare const Password: React.ForwardRefExoticComponent<PasswordProps & React.RefAttributes<InputRef>>;
14export default Password;