UNPKG

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