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

react-input-code

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-input-code

React component to insert a code in a series of single char input elements

Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
7
75%
Maintainers
1
Weekly downloads
 
Created
Source

react-input-code

React component to insert a code in a series of single char input elements

demo_image

NPM JavaScript Style Guide

Install

npm install --save react-input-code

Usage

import React, { useState } from 'react'
import ReactInputCode from 'react-input-code'
import 'react-input-code/dist/index.css'

const App = () => {
  const [value, setValue] = useState('')

  return <>
    <ReactInputCode
      value={value}
      onChange={setValue}
      type={'text'}
      className='my-input-code'
      itemClassName='my-code-item'
      nItems={6}
      autofocus={true} />

    <p>Current value: {value}</p>
  </>
}

License

MIT © [Mario Fornaroli](https://github.com/Mario Fornaroli)

FAQs

Package last updated on 26 Aug 2022

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