New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-type-password

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-type-password

React password input with type='text' support.

latest
npmnpm
Version
0.1.3
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

React Type Password

Controlled password input that can be of text type.

Installation

$ npm install react-type-password

Usage

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}
/>

Options

OptionTypeDescription
typestringDefines the type of the input. Options: password, text. Default: text.
valuestringRequired. The current value of the password/text field.
idstringThe HTML id attribute.
maskcharThe character used to hide the inpupt. Default:
namestringThe HTML name attribute.
classNamestringA space-separated list of HTML class attributes.
placeholderstringThe HTML placeholder attribute.
styleobjectInline CSS styles to be applied.
disabledbooleanThe HTML disabled attribute.
onChangefunctionRequired. A callback function to be invoked when the value of the field changes. Receives an argument containing the new text value.

License

MIT

FAQs

Package last updated on 25 Feb 2020

Did you know?

Socket

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.

Install

Related posts