Primer CSS Select menu Filter Last Updated : 23 May, 2025 Comments Improve Suggest changes 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 Filter.The Primer CSS Filter is used to search any item from the menu item list when the list becomes very long. It uses SelectMenu-filter class to add a filter element.Primer CSS Filter Class:SelectMenu-filter: This class is used to add a filter input field to the element.Syntax:<form class="SelectMenu-filter"> <input class="SelectMenu-input form-control" type="...."></form>Example 1: This example demonstrates the use of Primer CSS Filter. HTML <!DOCTYPE html> <html> <head> <title>Primer CSS Filter</title> <link rel="stylesheet" href= "https://unpkg.com/@primer/css@^19.0.0/dist/primer.css" /> </head> <body> <div class="pl-12" > <h1 style="color:green">GeeksforGeeks</h1> <h3>Primer CSS Filter</h3> <details class="details-reset details-overlay" open> <summary class="btn" aria-haspopup="true"> Choose any course </summary> <div class="SelectMenu SelectMenu--hasFilter"> <div class="SelectMenu-modal"> <header class="SelectMenu-header"> <h3 class="SelectMenu-title"> GeeksforGeeks Courses </h3> </header> <form class="SelectMenu-filter"> <input class="SelectMenu-input form-control" type="text"> </form> <div class="SelectMenu-list"> <button class="SelectMenu-item" role="menuitem"> DSA Self-Paced </button> <button class="SelectMenu-item" role="menuitem"> Complete Interview Preparation </button> <button class="SelectMenu-item" role="menuitem"> C++ STL </button> <button class="SelectMenu-item" role="menuitem"> Fork Python </button> </div> </div> </div> </details> </div> </body> </html> Output:Primer CSS Filter Example 2: This is another example that demonstrates the use of Primer CSS Filter. HTML <!DOCTYPE html> <html> <head> <title>Primer CSS Filter</title> <link rel="stylesheet" href= "https://unpkg.com/@primer/css@^19.0.0/dist/primer.css" /> </head> <body> <div class="pl-12" > <h1 style="color:green">GeeksforGeeks</h1> <h3>Primer CSS Filter</h3> <details class="details-reset details-overlay" open> <summary class="btn" aria-haspopup="true"> Choose any events </summary> <div class="SelectMenu SelectMenu--hasFilter"> <div class="SelectMenu-modal"> <header class="SelectMenu-header"> <h3 class="SelectMenu-title"> GeeksforGeeks events </h3> </header> <form class="SelectMenu-filter"> <input class="SelectMenu-input form-control" type="text"> </form> <div class="SelectMenu-list"> <button class="SelectMenu-item" role="menuitem"> Interview Series #46 </button> <button class="SelectMenu-item" role="menuitem"> Job-A-Thon 8: Hiring Challenge </button> <button class="SelectMenu-item" role="menuitem"> Get Hired with GeeksforGeeks at SuperK </button> <button class="SelectMenu-item" role="menuitem"> Bi-Wizard School Coding Tournament 4.0 </button> </div> </div> </div> </details> </div> </body> </html> Output:Primer CSS Filter Comment More infoAdvertise with us Next Article Primer CSS Select menu Filter S singhtripti Follow Improve Article Tags : Web Technologies CSS Primer-CSS Primer-CSS Component Similar Reads Primer CSS Select menu Footer 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 2 min read Primer CSS Select menu Divider 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 2 min read Primer CSS Select Menu Disabled 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 2 min read Primer CSS Select Menu Header 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 2 min read Primer CSS Select menu List Items 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 2 min read Primer CSS Select menu Loading 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 2 min read Primer CSS Selects Forms 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 2 min read Primer CSS Select Menu Message 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 2 min read Primer CSS Select menu Blankslate 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 2 min read Primer CSS Marketing Filters 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. It is highly reusable and flexible. It is created with GitHubâs design system.Filters are used to change the overall background or 2 min read Like