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

Function DateInput

packages/@react-spectrum/s2/src/DateField.tsx:196–209  ·  view source on GitHub ↗
(props: Omit<DateInputProps, 'children'>)

Source from the content-addressed store, hash-verified

194}
195
196export function DateInput(props: Omit<DateInputProps, 'children'>): ReactElement {
197 return (
198 <AriaDateInput className="" {...props}>
199 {segment => (
200 <AriaDateSegment
201 segment={segment}
202 className={renderProps =>
203 dateSegment({...renderProps, isPunctuation: segment.type === 'literal'})
204 }
205 />
206 )}
207 </AriaDateInput>
208 );
209}
210
211export function InvalidIndicator(props: {
212 isInvalid: boolean;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected