amis-rpc-design/node_modules/antd/lib/input/Password.d.ts

15 lines
545 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
import * as React from 'react';
import type { InputProps, InputRef } from './Input';
type VisibilityToggle = {
visible?: boolean;
onVisibleChange?: (visible: boolean) => void;
};
export interface PasswordProps extends InputProps {
readonly inputPrefixCls?: string;
readonly action?: string;
visibilityToggle?: boolean | VisibilityToggle;
iconRender?: (visible: boolean) => React.ReactNode;
}
declare const Password: React.ForwardRefExoticComponent<PasswordProps & React.RefAttributes<InputRef>>;
export default Password;