
Company News
Andrew Becherer Joins Socket as Chief Information Security Officer
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.
react-utils-input
Advanced tools
Lightweight React Input component, serving as a reusable utility wrapper for HTML Input elements.
Lightweight React Input component, serving as a reusable utility wrapper for HTML Input elements.
Provides access to commonly used methods as well as wrapper and element classes for reusability.
npm i --save react-utils-input
import React from 'react';
import Input from 'react-utils-input';
class Container extends React.Component {
constructor() {
super();
this.state = { value: null };
}
componentDidMount() {
// Programmatically focus the input
this.input && this.input.focus();
}
render() {
return <Input ref={c => this.input = c}
autoComplete='off'
className='input-custom-class'
checked={false}
checkedDefault={false}
disabled={false}
id={'custom-id'}
label={'Label'}
labelBefore={false}
name='custom-name'
onBlur={() => {}}
onChange={ev => this.setState({ value: ev.target.value })}
onFocus={() => {}}
onKeyDown={() => {}}
onKeyUp={() => {}}
placeholder='custom-placeholder'
type='password'
value={this.state.value}
wrapperClassName='wrapper-custom-class'/>;
}
}
The library can also be loaded via require:
const Input = require('react-utils-input');
The code is open-source and available under the MIT Licence. More details in the LICENCE.md file.
FAQs
Lightweight React Input component, serving as a reusable utility wrapper for HTML Input elements.
The npm package react-utils-input receives a total of 6 weekly downloads. As such, react-utils-input popularity was classified as not popular.
We found that react-utils-input 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.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.