semantic-ui-calendar-react
Version:
date/time picker built from semantic-ui elements
22 lines (21 loc) • 965 B
TypeScript
import * as React from 'react';
import { OnValueClickData } from '../BaseCalendarView';
export declare type BodyWidth = 3 | 4 | 7;
interface BodyProps {
/** A number of columns in a row. */
width: BodyWidth;
/** Data that is used to fill a calendar. */
data: string[];
/** Called after a click on calendar's cell. */
onCellClick: (e: React.SyntheticEvent, data: OnValueClickData) => void;
/** Called on cell hover. */
onCellHover: (e: React.SyntheticEvent, data: any) => void;
/** Index of an element in `data` array that should be displayed as hovered. */
hovered?: number;
/** Index of an element (or array of indexes) in `data` array that should be displayed as active. */
active?: number | number[];
/** Array of element indexes in `data` array that should be displayed as disabled. */
disabled?: number[];
}
declare function Body(props: BodyProps): JSX.Element;
export default Body;