y-vehicle-plate-keyboard
TypeScript icon, indicating that this package has built-in type declarations

0.9.0-beta.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i y-vehicle-plate-keyboard

Weekly Downloads

3

Version

0.9.0-beta.2

License

MIT

Unpacked Size

25.4 kB

Total Files

12

Last publish

Collaborators

  • clooe