UNPKG

react-nepalipatro

Version:

A reusable Nepali (Bikram Sambat) calendar React component.

36 lines (35 loc) 841 B
export interface NepaliCalendarProps { calendarType?: "BS" | "AD"; year?: number; month?: number; events?: { id: number | string; date: string; title: string; }[]; onDayClick?: (data: { bsDate: string; adDate: string; events: { id: number | string; date: string; title: string; }[]; }) => void; renderDay?: (date: string) => React.ReactNode; classNames?: { root?: string; header?: string; weekRow?: string; dayCell?: string; dayCellToday?: string; dayCellEventDot?: string; select?: string; button?: string; }; styles?: { root?: React.CSSProperties; header?: React.CSSProperties; grid?: React.CSSProperties; }; }