2.0.10 • Published 1 year ago

reactjs-otp-input v2.0.10

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

A fully customizable, one-time password input component for the web built with React.

see here

Support auto fill on mobile (safari, chrome....)

see here

Live Demo

Installation

NPM

To install the latest stable version:

pnpm install reactjs-otp-input@latest

Basic usage:

import React, { Component } from 'react';
import { OtpInput } from 'reactjs-otp-input';

const App = () => {
  const [otp, setOtp] = useState('');

  const handleChange = (otp) => setOtp(otp);

  return <OtpInput value={otp} onChange={handleChange} numInputs={6} separator={<span>-</span>} />;
};

To run the development server:

npm run dev

API

About

Gia Hung – hung.hg

2.0.9

1 year ago

2.0.10

1 year ago

1.0.2

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.7

2 years ago

2.0.6

2 years ago

2.0.8

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.1

3 years ago

1.0.0

3 years ago