import React from 'react'; import { DateInput, DateSegment, FieldError, Label, Text, TimeField as RACTimeField, type TimeFieldProps as RACTimeFieldProps, type TimeValue, type ValidationResult, } from 'react-aria-components'; export interface TimeFieldProps extends RACTimeFieldProps { label?: string; description?: string; errorMessage?: string | ((validation: ValidationResult) => string); } export function TimeField({ label, description, errorMessage, ...props }: TimeFieldProps) { return ( {(segment) => } {description && {description}} {errorMessage} ); }