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

Function getPlaceholderTime

packages/react-stately/src/datepicker/utils.ts:231–237  ·  view source on GitHub ↗
(placeholderValue: DateValue | null | undefined)

Source from the content-addressed store, hash-verified

229}
230
231export function getPlaceholderTime(placeholderValue: DateValue | null | undefined): TimeValue {
232 if (placeholderValue && 'hour' in placeholderValue) {
233 return placeholderValue;
234 }
235
236 return new Time();
237}
238
239export function convertValue(
240 value: DateValue | null | undefined,

Callers 4

setDateRangeFunction · 0.90
setOpenFunction · 0.90
selectDateFunction · 0.90
setOpenFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected