🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

afu-vehicle-plate-keyboard-react

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

afu-vehicle-plate-keyboard-react

React 实现的车牌键盘。

latest
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

@auto/vehicle-plate-keyboard-react

React 实现的车牌键盘。

🚗 Demo

Demo

📷 Screenshots

1

2

📦 Installation

yarn add afu-vehicle-plate-keyboard-react

🔨 Usage

import { LicenseKeyboard } from 'afu-vehicle-plate-keyboard-react';
function App() {
  const [showKeyboard, setShowKeyboard] = useState(false);
  const [value, setValue] = useState('');

  return (
    <div>
      <button
        data-test-id="controlButton"
        onClick={() => setShowKeyboard(!showKeyboard)}
      >{`${showKeyboard ? 'close' : 'open'} the keyboard`}</button>

      <p data-test-id="value">{value}</p>
      <LicenseKeyboard
        visible={showKeyboard}
        done={() => setShowKeyboard(false)}
        onChange={(value: any) => setValue(value)}
        value={value}
      />
    </div>
  );
}

🗺 API

propstypedescription
visiablebooleankeyboard visible
onChange(value: string) => voidtrigger when user tap
valuestringcontrolled value
done() => voidtrigger when keyborad dismiss
confirmButtonStyleStyleVlaueconfirm button style
confirmButtonTextstringconfirm button text
cellTextStyleStyleVlauekeycell style
cellDivStyleStyleVlauekeycell style
defalutConfigStyleVlaueexpand rules

📝 License

MIT License

FAQs

Package last updated on 17 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts