react-chrono-extra
Version:
A Modern Timeline component for React
21 lines (20 loc) • 1.19 kB
TypeScript
/// <reference types="@types/react" />
import { TimelineHorizontalModel } from '@models/TimelineHorizontalModel';
import React from 'react';
/**
* TimelineHorizontal
* @property {TimelineHorizontalModel} items - The items to be displayed in the timeline.
* @property {(item: TimelineItem) => void} handleItemClick - Function to handle item click.
* @property {boolean} autoScroll - Whether to auto-scroll the timeline.
* @property {string} wrapperId - The ID of the wrapper element.
* @property {boolean} slideShowRunning - Whether the slideshow is running.
* @property {() => void} onElapsed - Function to handle elapsed time.
* @property {React.ReactNode} contentDetailsChildren - The children nodes for content details.
* @property {boolean} hasFocus - Whether the timeline has focus.
* @property {React.ReactNode} iconChildren - The children nodes for icons.
* @property {number} nestedCardHeight - The height of the nested card.
* @property {boolean} isNested - Whether the card is nested.
* @returns {JSX.Element} The TimelineHorizontal component.
*/
declare const TimelineHorizontal: React.FunctionComponent<TimelineHorizontalModel>;
export default TimelineHorizontal;