Hook that provides functionality for building a custom time picker with theme-able styles.
Exposes refs used for popup pickers positioned with createPortal.
createPortal
Takes optional props to integrate with react-hook-form.
react-hook-form
const { inputRef, portalRef, dropdownPosition, selectedTime, selectorShown, setSelectorShown, handleSelectTime,} = useTimePicker({ name, setValue, trigger}); Copy
const { inputRef, portalRef, dropdownPosition, selectedTime, selectorShown, setSelectorShown, handleSelectTime,} = useTimePicker({ name, setValue, trigger});
Hook that provides functionality for building a custom time picker with theme-able styles.
Exposes refs used for popup pickers positioned with
createPortal.Takes optional props to integrate with
react-hook-form.