UNPKG

571 BMarkdownView Raw
1@# Time picker
2
3A `TimePicker` allows the user to specify a time.
4
5`TimePicker` has no direct localization support. You should handle localization in your
6application if needed.
7
8@reactExample TimePickerExample
9
10@## Props
11
12Use the `onChange` prop to listen for changes to the set time. You can control the selected time by
13setting the `value` prop, or use the component in uncontrolled mode and specify an initial time by
14setting `defaultValue`.
15
16`TimePicker` uses `Date` objects across its API but ignores their year, month, and day fields.
17
18@interface ITimePickerProps