
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
react-type-password
Advanced tools
Controlled password input that can be of text type.
$ npm install react-type-password
import Password from 'react-type-password';
<Password
id="password"
type="text"
mask='?'
className="form-control"
name="password"
placeholder="Enter password"
style={{backgroundColor:"transparent"}}
disabled={false}
value={this.state.password}
onChange={this.handleChange}
/>
| Option | Type | Description |
|---|---|---|
type | string | Defines the type of the input. Options: password, text. Default: text. |
value | string | Required. The current value of the password/text field. |
id | string | The HTML id attribute. |
mask | char | The character used to hide the inpupt. Default: • |
name | string | The HTML name attribute. |
className | string | A space-separated list of HTML class attributes. |
placeholder | string | The HTML placeholder attribute. |
style | object | Inline CSS styles to be applied. |
disabled | boolean | The HTML disabled attribute. |
onChange | function | Required. A callback function to be invoked when the value of the field changes. Receives an argument containing the new text value. |
MIT
FAQs
React password input with type='text' support.
The npm package react-type-password receives a total of 0 weekly downloads. As such, react-type-password popularity was classified as not popular.
We found that react-type-password demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.