@bagaking/dayboxing
Version:
A React component library for DayBoxing time management visualization
20 lines (19 loc) • 679 B
TypeScript
import React from "react";
import { HourData, HourType, ThemeConfig, HourChangeEvent, HourTooltipData } from "../../types";
export interface HourCellProps {
hour: HourData;
date: string;
theme: ThemeConfig;
editable: boolean;
customTypes?: {
[key: string]: {
color: string;
label: string;
};
};
typeOrder?: readonly HourType[];
onChange?: (event: HourChangeEvent) => void;
render?: (hour: HourData, date: string) => React.ReactNode;
onHover?: (data: Omit<HourTooltipData, "segment" | "previousDay"> | null, event: React.MouseEvent) => void;
}
export declare const HourCell: React.FC<HourCellProps>;