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

jattac.libs.web.zest-textbox

v0.1.6

Published

A delightful, feature-rich, and highly customizable React textbox component. Packed with features like automatic theme detection, password visibility toggle, character counters, and engaging animations.

Readme

jattac.libs.web.zest-textbox

A delightful, feature-rich, and highly customizable React textbox component. Built with accessibility and developer experience in mind.

ZestTextbox is a standalone component that extends the standard HTML <input> and <textarea> elements with a touch of zest, providing a polished, professional, and playful user experience.

Table of Contents

Features

  • Responsive and Mobile-First: Designed to look great on any screen size.
  • Light & Dark Mode: Automatically adapts to the user's system theme, or can be forced into a specific mode.
  • Password Visibility Toggle: A common-sense feature for all password inputs.
  • Character Counter: Provides clear feedback on input length.
  • Enhanced Numeric Input: Smart handling for numeric inputs, allowing decimals and negatives while preventing non-numeric characters.
  • Engaging Animations: Subtle, delightful animations on focus and interaction.
  • Progress Bar: A visual indicator of the user's progress towards the maxLength.
  • Accessible: Uses rem units for scalability and follows accessibility best practices.

Installation

To install the component, run the following command in your project directory:

npm install jattac.libs.web.zest-textbox

Basic Usage

Here's a simple example of how to use the ZestTextbox in your React application:

import React from 'react';
import ZestTextbox from 'jattac.libs.web.zest-textbox';

const App = () => {
  return (
    <div style={{ padding: '2rem' }}>
      <ZestTextbox placeholder="Enter your name" />
    </div>
  );
};

export default App;

Props API

The ZestTextbox component accepts all standard props for <input> and <textarea> elements, in addition to the following custom props:

| Prop | Type | Default | Description | | ----------------- | ---------------------------------- | ------------ | ---------------------------------------------------------------------------------------------------------------------------------------- | | isMultiline | boolean | false | If true, the component will render as a <textarea>. | | zSize | 'sm' \| 'md' \| 'lg' | 'md' | Sets the size of the textbox (padding and font size). | | stretch | boolean | false | If true, the component will stretch to the full width of its container. | | maxLength | number | undefined | The maximum number of characters allowed. Enables the character counter. | | theme | 'light' \| 'dark' \| 'system' | 'system' | Controls the component's theme. 'system' automatically detects the OS/browser preference. | | animatedCounter | boolean | false | If true, the character counter will change color as it approaches the maxLength. Requires maxLength to be set. | | showProgressBar | boolean | false | If true, a progress bar will be displayed at the bottom of the textbox. Requires maxLength to be set. |

Feature Examples

Password Input

To create a password input with a visibility toggle, simply set the type prop to "password".

<ZestTextbox type="password" placeholder="Enter your password" />

Character Counter & Progress Bar

Enable the character counter by setting the maxLength prop. You can also enable the progress bar and animated counter for a more engaging experience.

<ZestTextbox
  isMultiline
  maxLength={280}
  placeholder="What's on your mind?"
  showProgressBar
  animatedCounter
/>

Numeric Input

For numeric inputs, set the type prop to "number". The component will automatically handle filtering to allow only digits, a single decimal point, and a single leading negative sign.

<ZestTextbox type="number" placeholder="Enter a number" />
<ZestTextbox type="number" placeholder="Enter a decimal number" defaultValue="3.14" />
<ZestTextbox type="number" placeholder="Enter a negative number" defaultValue="-100" />

Sizing

The zSize prop allows you to control the size of the textbox.

<ZestTextbox zSize="sm" placeholder="Small" />
<ZestTextbox zSize="md" placeholder="Medium (default)" />
<ZestTextbox zSize="lg" placeholder="Large" />

Theming

Force the component into a specific theme using the theme prop.

// Force light mode
<ZestTextbox theme="light" placeholder="Light Mode" />

// Force dark mode
<ZestTextbox theme="dark" placeholder="Dark Mode" />

// Automatically adapt to system theme (default)
<ZestTextbox theme="system" placeholder="System Theme" />

Contributing

Contributions are welcome! If you have a feature request, bug report, or pull request, please feel free to open an issue or submit a PR.

Development Setup

  1. Clone the repository.
  2. Install dependencies with npm install.
  3. Run the build with npm run build.

License

This project is licensed under the ISC License.