import React , { useState } from 'react' ; import { TimePicker } from '@toptal/picasso' ; const DefaultExample = ( ) => { const [ timepickerValue , setTimepickerValue ] = useState < string > ( '18:00' ) ; const handleChange = ( e ) => { setTimepickerValue ( e . target . value ) ; } ; return < TimePicker onChange = { handleChange } value = { timepickerValue } / > ; } ; export default DefaultExample ;