ant-design/components/input/demo/password-input.md
偏右 081604e253
feat: ㊙️ Input passowrd custom icon ()
*  Support Input.Password iconRender

close 
close 

*  fix snapshot
2020-04-30 21:19:16 +08:00

519 B

order title
10
zh-CN en-US
密码框 Password box

zh-CN

密码框。

en-US

Input type of password.

import { Input, Space } from 'antd';
import { EyeInvisibleOutlined, EyeTwoTone } from '@ant-design/icons';

ReactDOM.render(
  <Space direction="vertical">
    <Input.Password placeholder="input password" />
    <Input.Password
      placeholder="input password"
      iconRender={visible => (visible ? <EyeTwoTone /> : <EyeInvisibleOutlined />)}
    />
  </Space>,
  mountNode,
);