import React from 'react'; import type { TimePickerProps } from 'antd'; import { Space, TimePicker } from 'antd'; const onChange: TimePickerProps['onChange'] = (time, timeString) => { console.log(time, timeString); }; const App: React.FC = () => ( <Space wrap> <TimePicker use12Hours onChange={onChange} /> <TimePicker use12Hours format="h:mm:ss A" onChange={onChange} /> <TimePicker use12Hours format="h:mm a" onChange={onChange} /> </Space> ); export default App;