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

Function TimeField

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

Source from the content-addressed store, hash-verified

17}
18
19export function TimeField<T extends TimeValue>({
20 label,
21 description,
22 errorMessage,
23 ...props
24}: TimeFieldProps<T>) {
25 return (
26 <AriaTimeField
27 {...props}
28 className={composeTailwindRenderProps(props.className, 'flex flex-col gap-1 font-sans')}>
29 <Label>{label}</Label>
30 <DateInput />
31 {description && <Description>{description}</Description>}
32 <FieldError>{errorMessage}</FieldError>
33 </AriaTimeField>
34 );
35}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected