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

Function useCalendar

packages/react-aria/src/calendar/useCalendar.ts:29–34  ·  view source on GitHub ↗
(
  props: AriaCalendarProps<T, M>,
  state: CalendarState<M>
)

Source from the content-addressed store, hash-verified

27 * A calendar displays one or more date grids and allows users to select a single date.
28 */
29export function useCalendar<T extends DateValue, M extends CalendarSelectionMode = 'single'>(
30 props: AriaCalendarProps<T, M>,
31 state: CalendarState<M>
32): CalendarAria {
33 return useCalendarBase(props, state);
34}

Callers 5

ExampleFunction · 0.90
ExampleCustomFirstDayFunction · 0.90
Calendar.tsxFile · 0.90
Calendar.tsxFile · 0.90
CalendarFunction · 0.90

Calls 1

useCalendarBaseFunction · 0.90

Tested by

no test coverage detected