This package contains a avatar component.
Change Log
You can install this package using npm, yarn, or pnpm.
npm install @pikas-utils/keyboard
yarn add @pikas-utils/keyboard
pnpm add @pikas-utils/keyboard
import { useKeyPress } from '@pikas-utils/keyboard';
const Example: React.FC = () => {
const isPressed = useKeyPress('Enter');
return <div>{isPressed ? 'Enter is pressed' : 'Enter is not pressed'}</div>;
};
This documentation can be edited on GitHub here