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