UNPKG

react-chrono-extra

Version:
32 lines (31 loc) 884 B
/// <reference types="@types/react" /> 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; content?: string | ReactNode; customContent?: React.ReactNode; detailedText?: string | string[]; 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; url?: string; urlClassName?: string; };