MCPcopy Create free account
hub / github.com/adobe/react-spectrum / TimeField

Function TimeField

starters/docs/src/TimeField.tsx:18–32  ·  view source on GitHub ↗
({
  label,
  description,
  errorMessage,
  ...props
}: TimeFieldProps<T>)

Source from the content-addressed store, hash-verified

16}
17
18export function TimeField<T extends TimeValue>({
19 label,
20 description,
21 errorMessage,
22 ...props
23}: TimeFieldProps<T>) {
24 return (
25 <AriaTimeField {...props}>
26 <Label>{label}</Label>
27 <DateInput>{segment => <DateSegment segment={segment} />}</DateInput>
28 {description && <Description>{description}</Description>}
29 <FieldError>{errorMessage}</FieldError>
30 </AriaTimeField>
31 );
32}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected