UI calendar/date picker component. Renders from input, combines class names, clones element.
import { clsx } from "clsx";
import React, { Component, cloneElement } from "react";
import Calendar, { OUTSIDE_CLICK_IGNORE_CLASS } from "./calendar";
import CalendarIcon from "./calendar_icon";
import {
newDate,
isDate,
isBefore,
isAfter,
isEqual,
setTime,
isValid,
getSeconds,
getMinutes,
getHours,
addDays,
addMinutes,
addMonths,
addWeeks,
subDays,
subMonths,
subWeeks,
addYears,
subYears,
isDayDisabled,
isDayInRange,
getEffectiveMinDate,
getEffectiveMaxDate,
parseDate,
parseDateForNavigation,
formatDate,
safeDateFormat,
safeDateRangeFormat,
getHighLightDaysMap,
getYear,
getMonth,
getStartOfWeek,
getEndOfWeek,
registerLocale,
setDefaultLocale,
getDefaultLocale,
DEFAULT_YEAR_ITEM_NUMBER,
isSameDay,
isMonthDisabl
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key