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

mobin-code-input

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobin-code-input

mobin-code-input is a masked input that can be used to enter all sorts of codes e.g. security codes when two-factor authenticating.

latest
npmnpm
Version
0.0.26
Version published
Weekly downloads
3
-91.89%
Maintainers
1
Weekly downloads
 
Created
Source

mobin-code-input

mobin-code-input is a masked input that can be used to enter all sorts of codes e.g. security codes when two-factor authenticating.

Instalation

$ npm i mobin-code-input

Use

import CodeInput from 'mobin-code-input';
import 'mobin-code-input/dist/style.css';

<CodeInput
	fields={5}
	value={value}
	type='number'
	onChange={(value) => {
		setValue(value)
	}}
/>

Do not forget to import CSS file.

API Reference

APITyperequiredDefaultDescription
fieldsnumber-Number of input fields
valuestring, undefiendundefiendDefault value of code input
type'string' , 'password' , 'number'-Type of code inputs
onChangefunction-Return the input value
disabledbooleanfalseDisable code input
autoFocusbooleantrueSet autoFocus on first input field
classNamestring-Set className and style for container
inputClassNamestring-Set className and style for inputs

FAQs

Package last updated on 13 Oct 2025

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