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

ng-timepick

v0.0.2

Published

A customisable Angular time picker component library built to suit user's styling and design preferences.

Downloads

5

Readme

⏰ ng-timepick

A highly customizable, modern Angular time picker component designed for seamless integration and effortless user experience. ng-timepick empowers developers to deliver elegant time selection UIs that blend perfectly with any design system.


✨ Features

  • 12-hour clock face with AM/PM toggle
  • Manual time input with validation and error feedback
  • Interactive clock dial for intuitive hour and minute selection
  • Reactive outputs for easy integration with forms and parent components
  • Accessible and keyboard-friendly
  • Fully styleable via SCSS for effortless theming

🚀 Installation

npm install ng-timepick

🛠️ Usage

1. Import the Module

Add NgTimepickModule to your feature or root module:

import { NgTimepickModule } from 'ng-timepick';

@NgModule({
  imports: [
    NgTimepickModule,
    // ...other imports
  ]
})
export class AppModule {}

2. Add the Component

Insert the time picker in your template:

<lib-ng-timepick
  (timeSelected)="onTimeSelected($event)"
  (timePickerClosed)="onTimePickerClosed()"
></lib-ng-timepick>

3. Handle Output Events

onTimeSelected(time: string) {
  // time is in 'HH:mm' 24-hour format
  console.log('Selected time:', time);
}

onTimePickerClosed() {
  // Handle picker close event
}

🎨 Customization

Styling

The component uses BEM-inspired SCSS classes for easy customization. Override styles in your global stylesheet or use Angular's ::ng-deep selector for deep styling.

::ng-deep .timepicker-container {
  background: #222;
  color: #fff;
  border-radius: 12px;
}

Inputs & Outputs

  • Outputs:
    • timeSelected: EventEmitter<string> — Emits the selected time in HH:mm format.
    • timePickerClosed: EventEmitter<void> — Emits when the picker is closed (e.g., clicking outside).

🧩 API Reference

| Output | Type | Description | |--------------------|----------------------|---------------------------------------------| | timeSelected | EventEmitter<string>| Emits the selected time in HH:mm format | | timePickerClosed | EventEmitter<void> | Emits when the picker is closed |


🧪 Testing

Run unit tests with:

ng test ng-timepick

🏗️ Building

To build the library for distribution:

ng build ng-timepick

The build artifacts will be located in the dist/ng-timepick/ directory.


📦 Publishing

After building, publish to npm:

cd dist/ng-timepick
npm publish

📚 Advanced Usage

  • Reactive Forms Integration: Use the output events to bind the selected time to your form controls.
  • Dynamic Styling: Leverage Angular's theming capabilities or CSS variables for runtime style changes.
  • Accessibility: The component is designed with accessibility in mind, but you can further enhance it as needed.

📝 License

MIT © R Ram Shankar


🤝 Contributing

Contributions, issues, and feature requests are welcome!
Feel free to check issues page.


📎 Links


ng-timepick — The elegant Angular time picker for modern web apps.