# @axetroy/react-codebox

> codebox component for react

Latest version **0.1.0** (published 2018-04-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install @axetroy/react-codebox
pnpm add @axetroy/react-codebox
yarn add @axetroy/react-codebox
bun add @axetroy/react-codebox
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2018-04-29 |
| First published | 2018-04-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 261 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | axetroy |
| Maintainers | axetroy |
| Keywords | react, react-component, code |

## Links

- npm: https://www.npmjs.com/package/@axetroy/react-codebox
- npm.io page: https://npm.io/package/@axetroy/react-codebox

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads
- [datasets-fi-postalcodes](https://npm.io/package/datasets-fi-postalcodes.md) — 1.1K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2018-04-29

## README

# react-codebox

验证码输入框的 React 实现.

[在线 demo](https://axetroy.github.io/react-codebox/)

## Install

```bash
yarn add @axetroy/react-codebox
```

## Usage

```jsx harmony
import React, { Component } from "react";
import Codebox from "@axetroy/react-codebox";

class App extends Component {
  render() {
    return (
      <div>
        <Codebox
          length={4}
          validator={(input, index) => {
            return /\d/.test(input);
          }}
          onChange={codeArray => {
            console.log(codeArray);
          }}
        />
      </div>
    );
  }
}
```

### License

The [MIT License](https://github.com/axetroy/react-codebox/blob/master/LICENSE)

---
_Source: https://npm.io/package/@axetroy/react-codebox · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
