🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

react-bootstrap-maskedinput

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-bootstrap-maskedinput

react-maskedinput form element that works with react-bootstrap

0.5.0
latest
Source
npm
Version published
Weekly downloads
430
-1.38%
Maintainers
1
Weekly downloads
 
Created
Source

npm version CircleCI Coverage Status

react-bootstrap-maskedinput

react-maskedinput form element that works with react-bootstrap.

Versioning

  • For react-bootstrap < 0.29.0, use v0.1.0.
  • For react-bootstrap >= 0.29.0 and < 1.0, use v0.4.0.
  • For react-bootstrap >= 1.0, use v0.5.0.

Usage

  • Install the package: npm install react-bootstrap-maskedinput --save or yarn add react-bootstrap-maskedinput
  • Import the component: import MaskedFormControl from 'react-bootstrap-maskedinput'
  • Use in your JSX -- the component accepts all the usuals from react-bootstrap's FormControl component plus react-maskedinput's MaskedInput component.

Simple example:

import MaskedFormControl from 'react-bootstrap-maskedinput'

export default class MyForm extends React.Component {
  render () {
    return (
      <FormGroup>
        <ControlLabel>Phone Number</ControlLabel>
        <MaskedFormControl type='text' name='phoneNumber' mask='111-111-1111' />
      </FormGroup>
    );
  }
}

Development

Prerequisites

  • git
  • npm
  • yarn (optional/recommended)

Setup

  • Clone the repository (git clone git@github.com:schneidmaster/react-bootstrap-maskedinput.git)
  • Install dependencies: npm install or yarn install

Testing

Run npm run example or yarn example and open http://localhost:8080. Make changes in src/index.js or try different setups in example/index.js.

Deployment

  • Run npm run build or yarn build to build an ES5 version of the class.

Contributing

License

MIT

Keywords

react

FAQs

Package last updated on 09 Jul 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