Skip to Content
✨ QuickCode UI keeps growing! More components, more features, and more ways to make your projects shine. Stay tuned & maybe… hire me or sponsor me 😉 
DocumentationTimeline

Timeline

Display a series of events in chronological order with visual indicators and connecting lines.

Install Dependencies

npx
quickcode-ui add Timeline

Examples

Default Example

Default Timeline

  1. Order Placed

    Your order has been confirmed and is being prepared

    2 hours ago

  2. Processing

    Your items are being picked and packed

    1 hour ago

  3. Shipped

    Package is on its way to your location

    In progress

  4. Delivered

    Package will be delivered to your address

    Estimated: Tomorrow

Git Example

Git Timeline

  1. Commit Created

    You have created a new commit locally

    Just now

  2. Pushed

    Commit has been pushed to the remote repository

    5 minutes ago

  3. Merged

    Your branch has been merged successfully

    Completed


Props

Timeline

PropTypeDefaultDescription
childrenReact.ReactNodeTimeline items to display
activenumberundefinedIndex of current active element, items before are highlighted
colorstring'bg-primary'Color class applied to active items
lineWidthnumber2Width of the connecting line in pixels
bulletSizenumber32Size of the bullet (dot)
align'left' | 'right''left'Position of the line and bullets relative to content
reverseActivebooleanfalseReverse active direction (highlight after index instead of before)
dotStyle'filled' | 'Outline'filledStyle for all the LineItem content
classNamestringundefinedAdditional CSS classes

TimelineItem

PropTypeDefaultDescription
childrenReact.ReactNodeContent inside the item
variant'solid' | 'dashed' | 'dotted''solid'Line style for this item
bulletReact.ReactNodeundefinedIcon or element rendered as the bullet
titleReact.ReactNodeundefinedOptional title shortcut
lineVariant'solid' | 'dashed' | 'dotted'undefinedOverride line variant for this item
classNamestringundefinedAdditional CSS classes

TimelineDot

PropTypeDefaultDescription
childrenReact.ReactNodeundefinedIcon or element inside the dot
classNamestringundefinedAdditional CSS classes

TimelineContent

PropTypeDefaultDescription
childrenReact.ReactNodeInner content of the item
classNamestringundefinedAdditional CSS classes

TimelineTitle

PropTypeDefaultDescription
childrenReact.ReactNodeTitle inside the content
classNamestringundefinedAdditional CSS classes

TimelineDescription

PropTypeDefaultDescription
childrenReact.ReactNodeDescription text
classNamestringundefinedAdditional CSS classes
Last updated on