
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
@ashwinthomas/react-time-picker-dropdown
Advanced tools
A time picker component for your react app.
You can checkout the demo.
$ npm install --save @ashwinthomas/react-time-picker-dropdown
import TimePicker from '@ashwinthomas/react-time-picker-dropdown';
render() {
<TimePicker
defaultValue="10:10:00 am"
useTwelveHourFormat={true}
onTimeChange={handleTimeChange}
/>
}
Displays an input field along with a dropdown to select time.
| Prop name | Description | Default value | Example values |
|---|---|---|---|
| defaultValue | Sets default input value supports formats hh:mm:ss a and hh:mm:ss | null | "10:10:00 am" |
| placeholder | Can be used to set input placeholder | "00 : 00 : 00" | "hh : mm : ss" |
| useTwelveHourFormat | Use useTwelveHourFormat props to switch between 24 / 12 hour format | false | true |
| onTimeChange | Function called when user picks a time. (Returns null if the input value is invalid.) | n/a | (value)=>alert("Time selected is: ", value) |
| onInputChange | Function called when picker value changed using the dropdown | n/a | (value)=>alert("Display time changed: ", value) |
| showCloseIcon | showCloseIcon can be used to toggle close icon visibility | true | true |
| showClockIcon | showClockIcon can be used to toggle clock icon visibility | true | true |
| allowBackdrop | allowBackdrop can be used to toggle backdrop | false | false |
FAQs
A time picker for react webapp
The npm package @ashwinthomas/react-time-picker-dropdown receives a total of 274 weekly downloads. As such, @ashwinthomas/react-time-picker-dropdown popularity was classified as not popular.
We found that @ashwinthomas/react-time-picker-dropdown demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.