Skip to content
Star

PxTimeline

A vertical timeline connector. It's fully slot-driven — the component itself only lays out the connector line and a marker/content column per item; it doesn't render any date, title, description, or icon automatically. You supply that via the marker and content scoped slots.

Usage

Demo
2024-01-15
Account Created
Initial registration completed.
2024-02-01
Onboarding Call
Initial setup and walkthrough.
2024-03-10
Profile Completed
All required information provided.

Without a marker slot, each item falls back to a small colored dot; without a content slot, nothing renders for that item at all.

Props

PropTypeDefaultDescription
valuerequiredT[]Array of items to render — shape is entirely up to you, since nothing is read from it directly by the component.

Slots

SlotPropsDescription
marker{ item, index }Custom marker/dot rendering for each item. Falls back to a plain colored dot if omitted.
content{ item, index }Main content for each item. Nothing renders here if omitted.

Built with VitePress