# vue-virtual-keyboard
**Repository Path**: tian-qing/vue-virtual-keyboard
## Basic Information
- **Project Name**: vue-virtual-keyboard
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2025-02-14
- **Last Updated**: 2025-02-14
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# VueVirtualKeyboard
[](https://www.npmjs.com/package/vue-virtual-keyboard) [](https://vuejs.org/)
> Use jQuery Virtual Keyboard in Vue
A on-screen keyboard (OSK) Component that works in the browser for vue. Useful for Kiosk Touchscreens.
Inspired by [react-virtual-keyboard](https://github.com/Utzel-Butzel/react-virtual-keyboard)
Based on the Virtual Keyboard using jQuery:
https://mottie.github.io/Keyboard/
For more information, check out the API documentation: https://github.com/Mottie/Keyboard/wiki/Options
## Installation
```bash
npm install --save vue-virtual-keyboard
```
## Usage
### Bundler (Webpack, Rollup)
```vue
```
```js
import { Keyboard } from 'vue-virtual-keyboard';
```
```js
keyboardOption: {
usePreview: false,
stickyShift: false,
autoAccept: true,
language: 'zh',
display: { // overwrite key display
accept: '确认',
bksp: '删除',
cancel: '取消',
enter: '回车',
},
},
```
```css
.ui-keyboard-case {
font-size: 40px;
text-align: center;
/* background: #fefefe; */
border: 1px solid #ffe3e2;
padding: 4px;
width: 38%;
height: auto;
margin-right: 5%;
/* left: 25%; */
/* top: auto;
bottom: 0px; */
/* position: fixed; */
}
```
### Browser
*Example in [jsfiddle](https://jsfiddle.net/relzhong/crmad2wy/)*
```html
```
## Development
### Launch visual tests
```bash
npm run dev
```
### Launch Karma with coverage
```bash
npm run dev:coverage
```
### Build
Bundle the js and css of to the `dist` folder:
```bash
npm run build
```
## Publishing
The `prepublish` hook will ensure dist files are created before publishing. This
way you don't need to commit them in your repository.
```bash
# Bump the version first
# It'll also commit it and create a tag
npm version
# Push the bumped package and tags
git push --follow-tags
# Ship it 🚀
npm publish
```
## License
[MIT](http://opensource.org/licenses/MIT)