npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-keyboard3d-dkhandelwal

v0.1.21

Published

A stunning, interactive 3D keyboard component for React. Features real-time sound synthesis, haptic vibration feedback, multiple layouts (QWERTY, A–Z, Numeric), and a mobile-first premium design.

Readme

⌨️ React KeyBoard-3D

A stunning, interactive 3D keyboard component for React. Features real-time sound synthesis, haptic vibration feedback, multiple layouts (QWERTY, A–Z, Numeric), and a mobile-first premium design.

KeyBoard3D Demo

🟢 Live Demo

Try it out in your browser instantly! Open in StackBlitz

📥 Installation

Install the package via npm:

npm install react-keyboard3d-dkhandelwal

Note: Since it's a React component, you'll need react and react-dom installed in your project.

🚀 Quick Start

Import the component and its CSS file into your React/Next.js application.

import { useState } from 'react';
import { Keyboard3D } from 'react-keyboard3d-dkhandelwal';
import 'react-keyboard3d-dkhandelwal/dist/index.css'; // Important: Import the styles!

export default function MyKeyboardApp() {
  const [text, setText] = useState('');

  return (
    <div style={{ height: '100vh', background: '#0a0814' }}>
      <Keyboard3D 
        value={text}
        onChange={(newText) => setText(newText)}
        defaultLayout="qwerty"
      />
    </div>
  );
}

🏷️ Props Reference

Keyboard3D supports both controlled and uncontrolled state management.

| Prop | Type | Default | Description | | :--- | :--- | :--- | :--- | | className | string | undefined | Optional custom CSS class for the outermost container. | | value | string | undefined | The current value of the typed text. If provided, the component acts as a controlled component. | | defaultValue | string | "" | Initial text value for uncontrolled usage. | | onChange | (value: string) => void | undefined | Callback fired whenever the text value changes. | | onKeyPress | (key: string) => void | undefined | Callback fired for every individual key press (including modifiers). | | layout | LayoutType | undefined | The current keyboard layout ('qwerty', 'abcd', 'numeric', 'hindi', 'phonetic-hindi', 'emoji'). If provided, layout state is controlled. | | defaultLayout | LayoutType | 'qwerty' | Initial layout for uncontrolled usage. | | onLayoutChange | (layout: LayoutType) => void| undefined | Callback fired when the user switches the layout via the toggle buttons. | | showDisplayScreen | boolean | true | Whether to show the top display screen showing the typed text. | | showLayoutToggle | boolean | true | Whether to show the layout toggle buttons. | | showHeader | boolean | true | Whether to show the header section with title and sound toggle. | | showFooter | boolean | true | Whether to show the footer section. | | headerTitle | ReactNode | "KeyBoard" | Custom header title content. | | headerTitleAccent | ReactNode | " 3D" | Custom accented text appended to the title. | | headerSubtitle | ReactNode | "Interactive · Animated · Immersive" | Custom header subtitle content. | | footerText | ReactNode | "Made with ❤️ in India." | Custom footer text content. | | enableSound | boolean | undefined | Whether to play sound on key press. If provided, sound state is controlled. | | defaultEnableSound| boolean | true | Initial sound state for uncontrolled usage. | | onSoundToggle | (enabled: boolean) => void| undefined | Callback fired when the sound toggle button is clicked. |

🔢 Layout Types

The LayoutType is exported from the package and supports the following literal strings:

  • 'qwerty' - A standard QWERTY layout.
  • 'abcd' - A standard A-Z alphabetical layout.
  • 'hindi' - A native Hindi (Devanagari) layout.
  • 'phonetic-hindi' - A phonetic English-to-Hindi transliteration layout powered by Google Input Tools.
  • 'numeric' - A number pad layout.
  • 'emoji' - A full emoji keyboard with categories and search functionality.

🎛 Features

  • Controlled/Uncontrolled: Use it as a drop-in uncontrolled component or hook it up to your own state.
  • Haptic & Sound: Automatically handles sound and vibration on mobile devices.
  • Modifiers: Supports Shift and Caps-Lock with intelligent auto-reverting shift behavior.
  • Phonetic Transliteration: Type in English and automatically convert to Hindi in real-time (phonetic-hindi layout).
  • Emoji Picker: Fully integrated emoji keyboard with skin-tone deduplication, categorized tabs, and a fast search bar.
  • Beautiful UI: Glassmorphism, 3D shadows, fluid dropdowns, and CSS animations built-in.

📖 Documentation

For installation guide, and usage examples, visit the Documentation

🤝 Contributing

Contributions are always welcome! If you have a great idea or spot a bug, feel free to open an issue or submit a pull request:

https://github.com/dkhandelwal2/custom-keyboard/issues

📄 License

MIT