Skip to main content

ITimelineProps

@spartanfx/react v1.2.2


@spartanfx/react / index / ITimelineProps

Interface: ITimelineProps

Props for the Timeline component.

Properties​

Required​

PropertyTypeDescription
stepsTimelineStep[]Array of timeline steps to render

Options​

PropertyTypeDescription
animateOnMount?booleanEnable animation on mount
dateFormatOptions?DateTimeFormatOptionsDate format options for display
endIcon?ReactNodeCustom icon for the end node
endLabel?stringCustom label for end node tooltip
highlightStates?booleanWhen true, applies distinct styling for passed/current/future states
orientation?"horizontal" | "vertical"Layout orientation
showDates?booleanWhether to show date labels beneath steps
startIcon?ReactNodeCustom icon for the start node
startLabel?stringCustom label for start node tooltip

Events & callbacks​

PropertyTypeDescription
onClick?(step) => voidCallback fired when a step is clicked

Appearance & theming​

PropertyTypeDescription
className?stringOptional CSS class for the root element