ITimelineProps
@spartanfx/react / ITimelineProps
Interface: ITimelineProps
Props for the Timeline component.
Properties
| Property | Type | Description |
|---|---|---|
animateOnMount? | boolean | Enable animation on mount |
className? | string | Optional CSS class for the root element |
dateFormatOptions? | DateTimeFormatOptions | Date format options for display |
endIcon? | ReactNode | Custom icon for the end node |
endLabel? | string | Custom label for end node tooltip |
highlightStates? | boolean | When true, applies distinct styling for passed/current/future states |
onClick? | (step) => void | Callback fired when a step is clicked |
orientation? | "horizontal" | "vertical" | Layout orientation |
showDates? | boolean | Whether to show date labels beneath steps |
startIcon? | ReactNode | Custom icon for the start node |
startLabel? | string | Custom label for start node tooltip |
steps | TimelineStep[] | Array of timeline steps to render |