
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
rc-virtual-keyboard
Advanced tools
react virtual keyboard
# install dependencies
$ pnpm install
# develop library by docs demo
$ pnpm start
# build library source code
$ pnpm run build
# build library source code in watch mode
$ pnpm run build:watch
# build docs
$ pnpm run docs:build
# Locally preview the production build.
$ pnpm run docs:preview
# check your project for potential problems
$ pnpm run doctor
npm install rc-virtual-keyboard --save
pnpm install rc-virtual-keyboard --save
yarn add rc-virtual-keyboard --save
import { useState } from 'react';
import { useVirtualKeyboard, keys } from 'rc-virtual-keyboard';
export default () => {
const [show, setShow] = useState(false);
const [themeMode, setThemeMode] = useState(
localStorage?.getItem(keys.VKB_THEME_MODE) ?? 'light',
);
const [positionMode, setPositionMode] = useState(
localStorage?.getItem(keys.VKB_POSITION_MODE) ?? 'float',
);
const [value, setValue] = useState('');
const { VirtualKeyboard, InitVirtualKeyBoardCtx, VirtualKeyboardProvide } =
useVirtualKeyboard();
return (
<>
{/* <div>可使用右侧虚拟键盘</div> */}
<input
placeholder="可使用右侧虚拟键盘"
onInput={(e) => {
setValue(e.target.value);
console.log('value', e.target.value);
}}
/>
<div>value:{value}</div>
<VirtualKeyboardProvide
value={{
...InitVirtualKeyBoardCtx,
width: '500px',
height: '320px',
show,
setShow,
themeMode,
setThemeMode,
positionMode,
setPositionMode,
theme: {},
}}
>
<VirtualKeyboard />
</VirtualKeyboardProvide>
</>
);
};
see you[https://anycloud666.github.io/rc-virtual-keyboard]
see you[https://anycloud666.github.io/rc-virtual-keyboard]
see you[https://anycloud666.github.io/rc-virtual-keyboard]
one star!one star!!!one star!!!
FAQs
virtual keyboard
The npm package rc-virtual-keyboard receives a total of 5 weekly downloads. As such, rc-virtual-keyboard popularity was classified as not popular.
We found that rc-virtual-keyboard demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.