ant-design/components/input/demo/password-input.md
2022-05-23 14:37:16 +08:00

566 B

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

zh-CN

密码框。

en-US

Input type of password.

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

const App: React.FC = () => (
  <Space direction="vertical">
    <Input.Password placeholder="input password" />
    <Input.Password
      placeholder="input password"
      iconRender={visible => (visible ? <EyeTwoTone /> : <EyeInvisibleOutlined />)}
    />
  </Space>
);

export default App;