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

@pelumoses/timepicker

v1.0.0

Published

A customizable React time picker component with dropdown interface

Readme

React TimePicker Component

A customizable React time picker component with dropdown interface built with TypeScript.

Features

  • 🕐 12-hour time format with AM/PM selection
  • 🎨 Customizable styling with Tailwind CSS classes
  • 📱 Responsive design
  • ♿ Accessible with proper ARIA attributes
  • 🔧 TypeScript support
  • 🎯 Moment.js integration for time handling

Installation

npm install @pelumoses/timepicker

Usage

import React, { useState } from 'react';
import { TimePicker } from 'react-timepicker-component';
import moment from 'moment';

function App() {
  const [selectedTime, setSelectedTime] = useState(null);

  const handleTimeChange = (time) => {
    setSelectedTime(time);
    console.log('Selected time:', time?.format('hh:mm A'));
  };

  return (
    <div>
      <TimePicker
        value={selectedTime?.format('hh:mm A')}
        onChange={handleTimeChange}
        placeholder="Select time"
        className="w-64"
      />
    </div>
  );
}

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | className | string | '' | Additional CSS classes for styling | | placeholder | string | 'Select time' | Placeholder text for the input | | clearIcon | React.ReactNode | null | Custom clear icon component | | value | string | undefined | Controlled value for the time picker | | onChange | (time: moment.Moment \| null) => void | undefined | Callback function when time changes |

Styling

The component uses Tailwind CSS classes for styling. You can customize the appearance by:

  1. Overriding classes: Pass custom className prop
  2. CSS customization: Target the component's classes in your CSS
  3. Tailwind configuration: Extend your Tailwind config to include custom colors

Default Classes Used

  • bg-elr-gray: Background color for input and hover states
  • text-elr-green: Text color for selected items
  • text-elr-black-400: Text color for clear button

Dependencies

  • React (>=16.8.0)
  • React DOM (>=16.8.0)
  • Moment.js (>=2.29.4)

Development

# Install dependencies
npm install

# Build the package
npm run build

# Development mode with watch
npm run dev

# Clean build directory
npm run clean

License

MIT

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request