Skip to main content
Version: 1.0.4

Timeline

@spartanfx/react v1.0.4


@spartanfx/react / Timeline

Variable: Timeline

const Timeline: React.FC<ITimelineProps>

Timeline component that renders a sequence of steps with start and end nodes.

Example

<Timeline
steps={[
{ id: '1', name: 'Planning', date: new Date('2024-01-15') },
{ id: '2', name: 'Development', date: new Date('2024-02-20') },
{ id: '3', name: 'Launch', date: new Date('2024-03-30') },
]}
highlightStates={true}
orientation="horizontal"
onClick={(step) => console.log('Clicked:', step)}
/>