Description
react-bootstrap-time-picker is a time picker component for React with a Bootstrap look. It renders a dropdown of time options between a start and an end time, at a step interval you choose, so people pick a time from a list instead of typing one. Times can be shown in 12-hour or 24-hour format. The start, end and step props set the range, and the step is given in minutes. The value prop controls the selected time, and an initialValue sets the starting selection when no value is given. Times can be written as strings such as 1:00 or 01:00, or as a number of seconds. An onChange callback receives the selected time as a number of seconds, calculated as hours times 3600 plus minutes times 60 plus seconds. The README says the library does little validation of its props, and that a setup such as a start time later than the end time produces undefined rendering. Version 2 supports React Bootstrap 1.0.0 and later, and version 1 supports React Bootstrap 0.x. The README links a demo and playground. The component is aimed at React developers who use Bootstrap and need a simple time selection control.…
Highlights
- Time dropdown styled for React Bootstrap
- Start, end and step options
- 12-hour or 24-hour display
- Controlled value and initial value
- onChange returns seconds from midnight
Ratings & Reviews
No ratings yet
Be the first to rate react-bootstrap-time-picker.
People also visit
react-bootstrap-time-picker FAQ
What is react-bootstrap-time-picker?
A React time picker component with a Bootstrap look, for choosing a time from a list of options.
Which React Bootstrap version does it support?
Version 2 supports React Bootstrap 1.0.0 and later. Version 1 supports React Bootstrap 0.x.
How do I set the range and the interval?
Use the start and end props for the range and the step prop, in minutes, for the gap between options. The defaults are 00:00 to 23:59 with a 30-minute step.
Does it validate its props?
Not much. The README says that a setup such as a start time later than the end time gives undefined behavior.
What does onChange return?
The selected time as a number of seconds, calculated as hours times 3600 plus minutes times 60 plus seconds.
What are the best react-bootstrap-time-picker alternatives?
Popular alternatives to react-bootstrap-time-picker include react-bootstrap-daterangepicker, react-datetime and time-picker. See all react-bootstrap-time-picker alternatives

















