Password.d.ts 625 B

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