VOOZH about

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

โ‡ฑ Primer CSS Timeline TimelineItem-Condensed - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Primer CSS Timeline TimelineItem-Condensed

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-Condensed is used to reduce the vertical padding and remove the background from the badge. We can use these in commits in Github. 

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

Primer CSS TimelineItem--condensed Class:

  • TimelineItem--condensed: This class is used to create condensed timeline items.

Syntax:

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

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

Output:

๐Ÿ‘ Image
Primer CSS TimelineItem--condensed


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

Output:

๐Ÿ‘ Image
Primer CSS TimelineItem--condensed


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

Comment