password-field

1.0.6 • Public • Published

PasswordField

Build Status

<PasswordField /> component for React + Material-UI.

Install

$ npm install password-field --save

Requires

  • React 16.x
  • Material-UI

Usage

import React, { Component } from 'react';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import PasswordField from 'password-field'
 
class MyComponent extends Component {
  render() {
    return(
      <MuiThemeProvider>
        <PasswordField
          id="password"
          hintText="Password"
          fullWidth={ true }
          iconColor="#ffffff"
        />
      </MuiThemeProvider>
    );
  }
}

Properties

All properties of TextField will be supported.

And also, PasswordField has following custom properties.

  • iconColor - The color of icon to toggle visibility. It will be passed to SVG Icon as the color property.
  • iconStyle - The style of icon to toggle visibility. It will be passed to SVG Icon as the style property.

License

MIT

Dependencies (1)

Dev Dependencies (13)

Package Sidebar

Install

npm i password-field

Weekly Downloads

7

Version

1.0.6

License

MIT

Unpacked Size

11.8 kB

Total Files

9

Last publish

Collaborators

  • miya0001