Open In App

Primer CSS Select Menu Header

Last Updated : 24 Apr, 2022
Summarize
Comments
Improve
Suggest changes
Share
Like Article
Like
Report

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. In this article, we will discuss Primer CSS Header.

The Header can be added by using SelectMenu-header class to the top element to show the clear title for the menu list.

Primer CSS Header class:

  • SelectMenu-header: This class is used to add an additional header element to the menu list.

Syntax:

<header class="SelectMenu-header">
   <h3 class="SelectMenu-title">
           .........
       </h3>
</header>

Example 1: Below is the example that illustrates the use of Primer CSS Header.

Output:

Primer CSS Header

Example 2: This is another example that demonstrates the use of Primer CSS Header.

Output:

 

Reference: https://primer.style/css/components/select-menu#header


Next Article

Similar Reads