Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

react-input-verification-code

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-input-verification-code

A verification code input, autocompletion friendly

Source
npmnpm
Version
0.4.3
Version published
Weekly downloads
6.9K
-5.6%
Maintainers
1
Weekly downloads
 
Created
Source

react-input-verification-code

A verification code input, autocompletion friendly

NPM JavaScript Style Guide

Examples

Install

npm install --save react-input-verification-code
yarn add react-input-verification-code

Usage

import * as React from 'react';
import ReactInputVerificationCode from 'react-input-verification-code';
import 'react-input-verification-code/dist/index.css';

export default function App() {
  return <ReactInputVerificationCode />;
}

API

Props

KeyTypeDefaultRequiredDescription
lengthnumber4falseHow many items will be rendered
onChangefunctiontrueFunction called when the value changes
placeholderstring·falseString rendered in each item when no value has been typed

CSS Properties

The following CSS properties are set globally so you can easily override them to fit your needs

KeyDefaultDescription
--ReactInputVerificationCode-itemWidth4.5remWidth of an item
--ReactInputVerificationCode-itemHeight5remHeight of an item
--ReactInputVerificationCode-itemSpacing1remSpace between two items

License

MIT © ugogo

Keywords

react

FAQs

Package last updated on 25 Jun 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