UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

15 lines (14 loc) 558 B
import * as React from 'react'; import type { InputProps, InputRef } from './Input'; interface VisibilityToggle { visible?: boolean; onVisibleChange?: (visible: boolean) => void; } export interface PasswordProps extends InputProps { readonly inputPrefixCls?: string; readonly action?: 'click' | 'hover'; visibilityToggle?: boolean | VisibilityToggle; iconRender?: (visible: boolean) => React.ReactNode; } declare const Password: React.ForwardRefExoticComponent<PasswordProps & React.RefAttributes<InputRef>>; export default Password;