react-chrono
Version:
A Modern Timeline component for React
31 lines (30 loc) • 893 B
TypeScript
import { ReactNode } from 'react';
import { Theme } from './Theme';
import { TimelineItemModel } from './TimelineItemModel';
import { Media } from './TimelineMediaModel';
/**
* Represents the model for timeline content.
*/
export type TimelineContentModel = {
active?: boolean;
branchDir?: string;
cardTitle?: string | ReactNode;
content?: string | ReactNode;
customContent?: React.ReactNode;
detailedText?: string | string[] | ReactNode | ReactNode[];
flip?: boolean;
hasFocus?: boolean;
id?: string;
isNested?: boolean;
items?: TimelineItemModel[];
media?: Media;
nestedCardHeight?: number;
onClick?: (id: string) => void;
onElapsed?: (id?: string) => void;
onShowMore?: () => void;
slideShowActive?: boolean;
theme?: Theme;
timelineContent?: React.ReactNode;
title?: string | ReactNode;
url?: string;
};