1.0.10 • Published 1 year ago

react-code-verification-input v1.0.10

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

Storybook demo

Try it youself at Chromatic

Installation

npm i react-code-verification-input

Usage

Use it as a controlled component, by suplying it with value and onChange value callback.

import React, { useState } from 'react'
import { CodeInput } from 'react-code-verification-input'

const [code, setCode] = useState('')

<CodeInput
  length={6}
  onChange={(value) => {
    setCode(value)
  }}
  value={code}
/>

Component props

NameTypeOptionalDescription
lengthnumberNoLenght of the input.
valueTextNoValue of input.
onChangeTextNoCallback running after value is changed.
cellClassTextYesCSS class to override custom cell styling.
containerClassTextYesCSS class to override custom container styling.
1.0.10

1 year ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago