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

@kolloqe/input

v1.0.0

Published

react-kbi-si-en React component

Readme

react-kbi-si-en

Kolloqe Input Component with code-switching support between Sinhala and English

Setting up the Dev Environmet

The original package was created using nwb. So, to set up a dev environment, the node_modules dir initialized using nwb new react-component is required to begin with.

  • Clone this repo
  • Simply run nwb new react-component cache to create a cache project
  • Copy-paste the node_modules dir to the root of the project
  • Get rid of the cached project cache
  • Run npm i to install additional packages
  • Run npm start to run the dev server
  • This project adhears to all the commands executable inside a nwb new react-component project
    1. npm start - runs the demo
    2. npm run build - builds modules
    3. npm publish - builds and publishes to npm (set up the package.json accordingly)

Releasing

  • When the version is bumped, first do the versioning in the package.json
  • run npm run build to build the latest build. (This is optional. npm publish can take care of this internally)
  • run npm publish to get the transpiled js modules and push to npmjs

Usage in a React Project

The component can be easily consumed within a React project as given below.

Installation

The package can be pulled from NPM as follows.

npm i @kolloqe/input

Then can be attached to any React component as specified below.

import KeyboardInput from '@kolloqe/input';

<KeyboardInput
  interface={"input"}
  value={""}
  placeholder="Type a message here..."
  className={"w-100 kolloqe-widget-message"}
  disableUnderline={true}
  defaultLanguage={localStorage.getItem(`${localStorageKeys.kolloqeSelectedLang}`) || this.props.defaultLang}
  ref={messageRef => this.messageRef = messageRef}
  handleChange={(e) => { this.handleMessageChange(e) }}
  handleTextChange={this.handleMessageChangeText}
  handleShortcut={this.handleLanguage}
  handleEnter={this.handleMessageSend}
  enableShortcuts={this.props.enableShortcuts}
  shortcutKey={this.props.shortcutKey} />

List of Props

{To be updated} Refer the Official Docs for more details on passing props to kolloqe input component.

Limitations

  • Styling is not supported via props. It should be done manually through overriding relevent CSS classes for now.