VOOZH about

URL: https://www.geeksforgeeks.org/css/primer-css-timeline-timelineitem-avatar/

โ‡ฑ Primer CSS Timeline TimelineItem-Avatar - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Primer CSS Timeline TimelineItem-Avatar

Last Updated : 23 Jul, 2025

Primer CSS is open-source on Github that is created with GitHubโ€™s design system. We can use Primer CSS by installing it via npm or include the CDN link in our HTML file. It has different types of styles like spacing, color, and typography.  

Primer CSS Timeline is used to display the items in the vertical direction. Primer CSS TimelineItem-Avatar is used to give ownership to the author of the timeline event. We will wrap the TimelineItem inside the <div> to make it work perfectly. 

In this article, we will discuss Primer CSS TimelineItem-Avatar.

Primer CSS TimelineItem-Avatar Class:

  • TimelineItem-avatar: This class is used to add the avatar to the timeline.

Syntax:

<div class="TimelineItem">
 <div class="TimelineItem-avatar">
 ...
 </div>
 ...
</div>

Example 1: The following example demonstrates the Primer CSS TimelineItem-Avatar.

Output:

๐Ÿ‘ Image
 Primer CSS TimelineItem-Avatar


Example 2: The following example demonstrates the Primer CSS TimelineItem-Avatar.

Output:

๐Ÿ‘ Image
 Primer CSS TimelineItem-Avatar


Reference: https://primer.style/#timelineitem-avatar

Comment