Skip to content

Commit b792e24

Browse files
committed
docs: add JSDoc documentation to HorizontalTimeline component
Signed-off-by: Gauarv Chaudhary <[email protected]>
1 parent 639a4d5 commit b792e24

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/ui/timeline.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,11 @@ function TimelineItem({ step, index, isLast }: TimelineItemProps) {
9292
}
9393

9494
/**
95-
* Horizontal Timeline for desktop - Clean card-based design
95+
* Horizontal Timeline variant for desktop displays.
96+
* Clean card-based design optimized for wider screens.
97+
* @param steps - Array of timeline steps to display
98+
* @param className - Optional additional CSS classes
99+
* @param ariaLabel - Optional aria-label for accessibility (defaults to "Workflow steps")
96100
*/
97101
export function HorizontalTimeline({ steps, className, ariaLabel = "Workflow steps" }: { steps: TimelineStep[], className?: string, ariaLabel?: string }) {
98102
return (

0 commit comments

Comments
 (0)