diff --git a/api-generator/components/timeline.js b/api-generator/components/timeline.js
index 843d0f5f5..3443c78a6 100644
--- a/api-generator/components/timeline.js
+++ b/api-generator/components/timeline.js
@@ -37,6 +37,10 @@ const TimelineSlots = [
{
name: "content",
description: "Custom content"
+ },
+ {
+ name: "connector",
+ description: "Connector element"
}
];
diff --git a/src/components/timeline/Timeline.d.ts b/src/components/timeline/Timeline.d.ts
index 8d1a0c9e8..c76e133c0 100644
--- a/src/components/timeline/Timeline.d.ts
+++ b/src/components/timeline/Timeline.d.ts
@@ -13,6 +13,7 @@ declare class Timeline {
content: VNode[];
opposite: VNode[];
marker: VNode[];
+ connector: VNode[];
}
}
diff --git a/src/components/timeline/Timeline.vue b/src/components/timeline/Timeline.vue
index 25a183684..a534daec9 100644
--- a/src/components/timeline/Timeline.vue
+++ b/src/components/timeline/Timeline.vue
@@ -8,7 +8,9 @@
Connector is an element that binds two events together, use the connector slot to use your own element instead of the default one. If you just require to customize simple properties like the + color and width, apply the "p-timeline-event-connector" class to your element to use the built-in positioning.
+
+<Timeline :value="events">
+ <template #content="slotProps">
+ {{slotProps.item.status}}
+ </template>
+ <template #connector>
+ <div class="p-timeline-event-connector" style="width:4px; color: blue"></div>
+ </template>
+</Timeline>
+