cui-pin
v1.0.0
Published
<p align="center"> <a href="https://cqb325.gitee.io/cui-solid-doc"> <img width="200" src="https://gitee.com/cqb325/cui-solid/raw/master/examples/assets/images/logo.svg"> </a> </p>
Downloads
2
Readme
Install
# npm
npm install cui-pin
# yarn
yarn add cui-pin
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