# otp-input-simple

> Simple OTP Input

Latest version **0.0.4** (published 2022-02-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install otp-input-simple
pnpm add otp-input-simple
yarn add otp-input-simple
bun add otp-input-simple
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2022-02-07 |
| First published | 2022-02-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | nrknithin |
| Maintainers | nrknithin |
| Keywords | react, components, ui, otp |

## Links

- npm: https://www.npmjs.com/package/otp-input-simple
- Repository: https://github.com/nrknithin/otp-input-simple
- Homepage: https://github.com/nrknithin/otp-input-simple#readme
- Issues: https://github.com/nrknithin/otp-input-simple/issues
- npm.io page: https://npm.io/package/otp-input-simple

## Alternatives

- [@progress/kendo-ooxml](https://npm.io/package/@progress/kendo-ooxml.md) — 152.1K weekly downloads
- [@progress/kendo-react-ripple](https://npm.io/package/@progress/kendo-react-ripple.md) — 8.0K weekly downloads
- [@progress/kendo-react-orgchart](https://npm.io/package/@progress/kendo-react-orgchart.md) — 4.3K weekly downloads
- [@praxisui/dynamic-fields](https://npm.io/package/@praxisui/dynamic-fields.md) — 2.4K weekly downloads
- [@progress/kendo-vue-listbox](https://npm.io/package/@progress/kendo-vue-listbox.md) — 932 weekly downloads

## Recent versions

- 0.0.4 (latest) — 2022-02-07
- 0.0.3 — 2022-02-07
- 0.0.2 — 2022-02-06
- 0.0.1 — 2022-02-06

## README

# Getting Started Simple OTP Input

## Installation

In the project directory, you can run:<br/>

    npm i otp-input-simple

### Import

    import OTPInput from "otp-input-simple";

### Example

    <OTPInput
        onChange={setOTP}
        value={otp}
        numInputs={6}
        seperator="-"
    />

## Props

onChange: onChange function return a value<br />
value: input value<br />
numInputs: Number of inputs <br />
inputStyle: style for input field eg: inputStyle={{ borderRadius: "25%", width: "50px", height: "50px", fontSize: "32px" }} <br />
containerStyle: style for container eg: containerStyle={{ display: "flex", justifyContent: "center" }} <br />
seperator: field seperator <br />

---
_Source: https://npm.io/package/otp-input-simple · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
