use-keyboard-open
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

use-keyboard-open react hook

how to install

npm i use-keyboard-open

example of use

import useKeyboardOpen from "use-keyboard-open";
export default function App() {
  const isKeyboardOpen = useKeyboardOpen();
  return (
    <div>
      <h2>{`keyboard is ${isKeyboardOpen ? "open" : "close"}`}</h2>
      <input defaultValue="click here for open keyboard" />
    </div>
  );
}

Package Sidebar

Install

npm i use-keyboard-open

Weekly Downloads

11

Version

1.0.2

License

MIT

Unpacked Size

3.1 kB

Total Files

5

Last publish

Collaborators

  • bostonleek