TimePicker and ClockPicker are powerful, flexible React components that provide intuitive time selection interfaces. Built with TypeScript and designed for modern React applications, they offer extensive customization options while maintaining excellent performance and accessibility.
Both components share the same core functionality and API, giving you the choice between a dropdown-style interface (TimePicker) or a visual clock interface (ClockPicker) based on your design requirements.
In this documentation, you'll learn how to:
Handle multiple time formats effortlessly. The picker automatically adapts to your preferred time format and lets you configure exactly how times are displayed and returned.
is12HourFormat prop. Example: 03:45 PM15:45showAMPM — hide or show the toggle easily.The Time Picker intelligently detects and manages different value types. This means less manual conversion and more reliable data handling.
string, date object or number timestamps.returnType (string, date, number) so it fits seamlessly into your app logic.isValidTime to ensure only valid times are processed.Designed to feel familiar to users and easy for developers. Smoothly handles dynamic content, responsiveness, and accessibility out of the box.
align prop (supports top, bottom, left, right). Automatically adjusts if there’s not enough space.Take full control of the look and feel. Style every part of the picker or integrate it seamlessly into your design system.
classNames props for each part — input, dropdown, buttons, lists, icons, etc.cancelButtonText and confirmButtonText props.showButtons prop.Built with TypeScript for reliable typings, excellent IntelliSense, and compile-time checks across props and internal utilities — which reduces runtime bugs and improves developer DX.
Uses React hooks and local state efficiently, avoids unnecessary re-renders, and keeps computations (like list generation and parsing) lightweight so the picker feels snappy even on mobile devices.
Compatible with all modern browsers supporting ES2015+ and React 16.8+:
| Browser | Minimum Version |
|---|---|
| Chrome | 60+ |
| Firefox | 55+ |
| Safari | 12+ |
| Edge | 79+ |
Ready to start using TimePicker and ClockPicker in your React application?