react-hijri-calendar
Version:
A pluggable React calendar component supporting Hijri and Gregorian dates, theming, and custom rendering.
22 lines (21 loc) • 751 B
TypeScript
import { getHijriDate } from '../utils';
import type { AvailableDateInfo, RenderDayCellParams } from '../types';
import type { CSSProperties, JSX } from 'react';
import type React from 'react';
interface CalendarDayCellProps {
date: Date;
isSelected: boolean;
isAvailable: boolean;
isCurrentDay: boolean;
isCurrentMonth: boolean;
isHijri: boolean;
currentHijriDate: ReturnType<typeof getHijriDate>;
currentActiveViewDate: Date;
dayCellClassName?: string;
dayCellStyle?: CSSProperties;
onClick: (date: Date) => void;
availableRowData?: AvailableDateInfo;
renderDayCell?: (params: RenderDayCellParams) => JSX.Element;
}
export declare const CalendarDayCell: React.FC<CalendarDayCellProps>;
export {};