{"id":20016953,"url":"https://github.com/sinanmtl/vue-focus-keyboard","last_synced_at":"2025-05-04T22:31:48.928Z","repository":{"id":57395983,"uuid":"125198714","full_name":"SinanMtl/vue-focus-keyboard","owner":"SinanMtl","description":"A keyboard component for Vue. Start to write immediately. No input element definition. Plug and play!","archived":false,"fork":false,"pushed_at":"2018-03-28T11:57:21.000Z","size":324,"stargazers_count":62,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-20T05:03:22.119Z","etag":null,"topics":["component","focus","keyboard","plug-and-play","quick","vue"],"latest_commit_sha":null,"homepage":null,"language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SinanMtl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-14T10:55:24.000Z","updated_at":"2023-10-02T10:17:39.000Z","dependencies_parsed_at":"2022-09-09T17:00:59.515Z","dependency_job_id":null,"html_url":"https://github.com/SinanMtl/vue-focus-keyboard","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SinanMtl%2Fvue-focus-keyboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SinanMtl%2Fvue-focus-keyboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SinanMtl%2Fvue-focus-keyboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SinanMtl%2Fvue-focus-keyboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SinanMtl","download_url":"https://codeload.github.com/SinanMtl/vue-focus-keyboard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252408361,"owners_count":21743102,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["component","focus","keyboard","plug-and-play","quick","vue"],"created_at":"2024-11-13T08:13:51.495Z","updated_at":"2025-05-04T22:31:48.544Z","avatar_url":"https://github.com/SinanMtl.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vue Focus Keyboard\n\n[![npm version](https://badge.fury.io/js/vue-focus-keyboard.svg)](https://www.npmjs.com/package/vue-focus-keyboard)\n[![npm](https://img.shields.io/npm/dt/vue-focus-keyboard.svg)](https://www.npmjs.com/package/vue-focus-keyboard)\n\n\u003e A keyboard component for Vue. Start to write immediately. No input element definition. Plug and play!- [Demo](https://sinanmtl.github.io/vue-focus-keyboard/)\n\n## Installation and usage\n\nInstall the Vue Focus Keyboard component for your project\n\n```bash\nnpm install vue-focus-keyboard --save\n```\n\nThen, add component into your app\n\n```javascript\nimport FocusKeyboard from 'vue-focus-keyboard';\n\nVue.use(FocusKeyboard)\n```\n\nUse HTML template\n\n```html\n\u003cFocusKeyboard\u003e\u003c/FocusKeyboard\u003e\n```\n\n## Props\n### `theme`\n\nThere are 2 theme in Vue Focus Keyboard. They are `dark` and `light` (default: `dark`). You can use one of them with `theme` prop.\n\n```html\n\u003cFocusKeyboard :theme=\"light\"\u003e\u003c/FocusKeyboard\u003e\n```\n\n### `keyboardWidth`\n\nAlso, you can set keyboard's width.\n\n```html\n\u003cFocusKeyboard :keyboardWidth=\"50%\"\u003e\u003c/FocusKeyboard\u003e\n```\n\n### `keyboard`\n\nYou don't like current keyboards? Well, set your custom keyboard layout. You can view default layouts in `src/layout.js` file\n\n```javascript\nexport default {\n  data () {\n    return {\n      customLayout: {\n        default: [\n          // Normal layout\n        ],\n        shifted: [\n          // Layout when press shift button\n        ],\n        capsed: [\n          // Layout when press capslock button\n        ],\n        alted: [\n          // Layout when press alt button\n        ],\n        shifted_capsed: [\n          // Layout when press shift + capslock button\n        ],\n        shifted_alted: [\n          // Layout when press shift + alt button\n        ]\n      },\n    }\n  }\n}\n```\n\nThen, set your keyboard.\n```html\n\u003cFocusKeyboard :keyboard=\"customLayout\"\u003e\u003c/FocusKeyboard\u003e\n```\n\n## License\n\nMIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinanmtl%2Fvue-focus-keyboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsinanmtl%2Fvue-focus-keyboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinanmtl%2Fvue-focus-keyboard/lists"}