# cui-pin
**Repository Path**: cqb325/cui-pin
## Basic Information
- **Project Name**: cui-pin
- **Description**: cui-pin
- **Primary Language**: NodeJS
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 1
- **Forks**: 0
- **Created**: 2023-07-27
- **Last Updated**: 2023-07-27
## Categories & Tags
**Categories**: Uncategorized
**Tags**: CUI, cui-solid, pin, solid-js
## README
CUI-PIN
pin field based on solidjs
[](https://www.npmjs.org/package/cui-pin)
[](https://npmjs.org/package/cui-pin)
[](https://npmjs.org/package/cui-pin)

## Install
# npm
npm install cui-pin
# yarn
yarn add cui-pin
## Demo
[Demo](https://codesandbox.io/p/sandbox/cui-pin-l38f5z "demo")
## Props
// pin field length default:4
length?: number
// pin field type 'text'|'numeric'|'tel'|'password' default: 'numeric'
type?: string
// pin field inputMode default: 'tel'
inputMode? "numeric"| "tel"| "text"| "none"| "url"| "email"| "decimal"| "search"
// field value test regex default: /^[a-zA-Z0-9]+$/
regexCriteria?: RegExp,
// disabled pin default: false
disabled?: boolean
// pin complete callback
onComplete?(pin: string, currentIndex: number): void