Skip to content

中国车牌号键盘 for React ,自动匹配省份 + 字母(无 I/O)/ 数字 + 「港澳学警领」和新能源车牌

License

Notifications You must be signed in to change notification settings

LiuuY/vehicle-plate-keyboard

Repository files navigation

vehicle-plate-keyboard

npm version Build Status License: MIT

A Chinese vehicle plate number keyboard for React (not a really keyboard, just a modal)

React 实现的车牌键盘。

💡 Features

🚗 Demo

Edit vehicle-plate-keyboard-demo

Demo

📷 Screenshots

1

2

3

📦 Installation

yarn add vehicle-plate-keyboard

🔨 Usage

import LicenseKeyboard from 'vehicle-plate-keyboard';
import 'vehicle-plate-keyboard/dist/main.css';

...

<LicenseKeyboard
   visible={state.showKeyboard}
   onChange={value => setState({ value })}
   value={state.value}
   done={() => setState({ showKeyboard: false })}
/>

🗺 API

props type description
visiable boolean keyboard visible
onChange (value: string) => void trigger when user tap
value string controlled value
done () => void trigger when keyborad dismiss
confirmButtonStyle React.CSSProperties confirm button style
confirmButtonText string confirm button text
cellTextStyle React.CSSProperties keycell style

📝 License

MIT License

About

中国车牌号键盘 for React ,自动匹配省份 + 字母(无 I/O)/ 数字 + 「港澳学警领」和新能源车牌

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published