( props: AriaTimeFieldOptions<T>, state: TimeFieldState, ref: RefObject<Element | null> )
| 246 | * Each part of a time value is displayed in an individually editable segment. |
| 247 | */ |
| 248 | export function useTimeField<T extends TimeValue>( |
| 249 | props: AriaTimeFieldOptions<T>, |
| 250 | state: TimeFieldState, |
| 251 | ref: RefObject<Element | null> |
| 252 | ): DateFieldAria { |
| 253 | let res = useDateField(props, state, ref); |
| 254 | // oxlint-disable-next-line react/react-compiler |
| 255 | res.inputProps.value = state.timeValue?.toString() || ''; |
| 256 | return res; |
| 257 | } |
no test coverage detected