mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-23 23:18:36 +08:00
081604e253
* ⚡ Support Input.Password iconRender close #23778 close #23484 * ✅ fix snapshot
519 B
519 B
order | title | ||||
---|---|---|---|---|---|
10 |
|
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,
);