React 자동차 키보드 구현 예시 코드
1926 단어 React자동차 번호판 키보드
React 가 구현 한 자동차 번호판 키보드.
https://github.com/LiuuY/vehicle-plate-keyboard
💡 Features
성+자모/숫자+'홍콩,마카오 학 경 령'
신 에너지 번호판
현재 위 치 를 자동 으로 판단 하여 문자 형식 을 입력 할 수 있 습 니 다.
🚗 Demo
Demo
📷 Screenshots
📦 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 })}
/>
APIprops
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
safeArea
boolean
show safearea
📝 License
MIT License
이상 이 바로 본 고의 모든 내용 입 니 다.여러분 의 학습 에 도움 이 되 고 저 희 를 많이 응원 해 주 셨 으 면 좋 겠 습 니 다.
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
바삭바삭하고 간단한 결제 페이지 만들기먼저 Next.js에서 프로젝트를 만듭니다. Vercel & Next.js가 매우 편하기 때문에 최근에는이 구성을 사용하고 있습니다. 그런 다음 Tailwind CSS를 넣습니다. Tailwind CSS를 사용하면 ...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.