mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-17 19:00:15 +08:00
6776bb8916
* docs: update demo * chore: add script * test: fix demo test * docs: convert demos * chore: move script * test: remove react-dom import * chore: update deps * docs: update riddle js * test: fix image test * docs: fix riddle demo
30 lines
511 B
Markdown
30 lines
511 B
Markdown
---
|
|
order: 10
|
|
title:
|
|
zh-CN: 密码框
|
|
en-US: Password box
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
密码框。
|
|
|
|
## en-US
|
|
|
|
Input type of password.
|
|
|
|
```jsx
|
|
import { Input, Space } from 'antd';
|
|
import { EyeInvisibleOutlined, EyeTwoTone } from '@ant-design/icons';
|
|
|
|
export default () => (
|
|
<Space direction="vertical">
|
|
<Input.Password placeholder="input password" />
|
|
<Input.Password
|
|
placeholder="input password"
|
|
iconRender={visible => (visible ? <EyeTwoTone /> : <EyeInvisibleOutlined />)}
|
|
/>
|
|
</Space>
|
|
);
|
|
```
|