VOOZH about

URL: https://www.geeksforgeeks.org/css/primer-css-header-item/

โ‡ฑ Primer CSS Header-Item - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Primer CSS Header-Item

Last Updated : 23 Jul, 2025

Primer CSS is a free open-source CSS framework that is built upon systems that create the foundation of the basic style elements such as spacing, typography, and color. This systematic method makes sure our patterns are steady and interoperable with every other. Its approach to CSS is influenced by Object-Oriented CSS principles, functional CSS, and BEM architecture. It is highly reusable and flexible. It is created with GitHubโ€™s design system.

Primer CSS Header is used to make a header with vertically aligned items and horizontal spacing. Primer CSS Header-Item is used to create the header item using the Header-item class. In this article, we will discuss the Primer CSS Header-Item.

Primer CSS Header-Item Class:

  • Header-item: This class is used to create the header item.

Syntax:

<div class="Header">
 <div class="Header-item">
 ...
 </div>
</div>

Example 1: The following code demonstrates the Primer CSS Header-Item with some items.

Output:

๐Ÿ‘ Image
Primer CSS Header-Item with some items

Example 2: The following code demonstrates the Primer CSS Header-Item with some items and a search box.

Output:

๐Ÿ‘ Image
Primer CSS Header-Item with some items and a search box

Reference: https://primer.style/#header-item

Comment