UNPKG

color-calendar

Version:

A zero-dependency, customizable events calendar widget with themes and event colors.

18 lines (17 loc) 797 B
import Calendar from "../index"; import type { CalendarOptions, EventData } from "../types"; export interface ColorCalendarProps extends Omit<CalendarOptions, "container"> { className?: string; style?: React.CSSProperties; ref?: React.Ref<ColorCalendarRef>; selectedDate?: Date | null; onSelectedDateChange?: (currentDate?: Date, filteredDateEvents?: EventData[]) => void; } export interface ColorCalendarRef { getCalendar: () => Calendar | null; updateEvents: (events: EventData[]) => void; setSelectedDate: (date: Date | null) => void; getSelectedDate: () => Date | null; } declare const ColorCalendar: import("react").ForwardRefExoticComponent<Omit<ColorCalendarProps, "ref"> & import("react").RefAttributes<ColorCalendarRef>>; export default ColorCalendar;