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

0.8.4 • Public • Published

vehicle-plate-keyboard

npm version Build Status License: MIT Storybook

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

🚧 Development

vehicle-plate-keyboard use Storybook for developing in isolation.

yarn storybook

open browser, http://localhost:6006/, 😆

1

📝 License

MIT License

Readme

Keywords

none

Package Sidebar

Install

npm i vehicle-plate-keyboard

Weekly Downloads

10

Version

0.8.4

License

MIT

Unpacked Size

26.3 kB

Total Files

12

Last publish

Collaborators

  • liuuy