Tags & Pills

Description

Easily highlight new or unread items by adding tags & pills to links, Bootstrap navs, and more. Vertical Navigation menu items can contain tags and pills in all navigation levels. You can use any color tags and pills with flat or glow effect. Modern Admin vertical navigation has tag & pills on left side.

Examples

Tags example

Primary Success Info Warning Danger

Tags with .badge-pill example

Primary Success Info Warning Danger

Tags with .badge-glow & custom background and border color.

Info Warning Danger teal blue grey purple

Tags (as pills)

12 5 8 12 10 15

Tags (as pills) with icons

Tags (as pills) with .badge-glow & custom background and border color.

12 50 2 9 11 100

CSS Classes

Tags

This table contains all classes related to the vertical navigation with tags option. Tags scale to match the size of the immediate parent element by using relative font sizing and em units.

All these options can be set via following classes:

Classes Description
.badge This is tags basic class must have to add for creating tags.
.badge-pill Use the .badge-pill modifier class to make tags more rounded (with a larger border-radius and additional vertical padding).
.badge-primary
.badge-success
.badge-info
.badge-warning
.badge-danger
Add any of the mentioned modifier classes to change the appearance of a tag.
.badge-glow Add this class to add glow effect to tags or pills. This is optional class.
.bg-[color]

To set the dark navbar background color use .bg-[color] class where [color] is the value of your selected color from modern color palette. So for teal color background class will be .bg-teal. Refer HTML markup line no 2. Background color class is a optional if you don't it will take white background default.

.bg-darken-[*]

To set the selected background color darken use .bg-darken-[*] class where [*] is the value between '1-5' of your selected darken color from modern color palette. So for color darken 4 background class will be .bg-darken-4. Refer HTML markup line no 2. Background darken color class is a optional if you don't it will take white background default.

.bg-darken-[*] class will work only if you have used .bg-[color].

.border-[color]

To set the dark navbar border color use .border-[color] class where [color] is the value of your selected color from modern color palette. So for teal color border class will be .bg-teal. Refer HTML markup line no 2. Border color class is a optional.

.border-darken-[color]

To set the selected border color darken use .border-darken-[*] class where [*] is the value between '1-5' of your selected darken color from modern color palette. So for color darken 4 border class will be .border-darken-4. Refer HTML markup line no 2. Border darken color class is a optional.

.border-darken-[*] class will work only if you have used .border-[color].

HTML Markup

This section contains HTML Markup to add tags & pills to vertical navigation menu with options.

  • Line no 21, 27 & 35: Contain the <span class="badge badge-info float-right">1.2.2</span> html code to add tag or badge to the menu items.
          
            <!DOCTYPE html>
            <html lang="en">
            <head></head>
            <body data-open="click" data-menu="vertical-menu" class="vertical-layout vertical-menu 1-column menu-expanded">

              <!-- navbar-static-top-->
              <nav role="navigation" class="header-navbar navbar-expand-sm navbar navbar-with-menu navbar-static-top navbar-dark navbar-shadow navbar-border">
              ...
              </nav>

              <!-- START main menu-->
                <div id="main-menu" data-scroll-to-active="true" class="main-menu menu-dark menu-fixed menu-shadow">
                    <!-- main menu header-->
                    <div class="main-menu-header">
                        <input type="text" placeholder="Search" class="menu-search form-control round" />
                    </div>
                    <!-- / main menu header-->
                    <!-- main menu content-->
                    <div class="main-menu-content menu-accordion">
                        <ul id="main-menu-navigation" data-menu="menu-navigation" class="navigation navigation-main">
                            <li class=" nav-item"><a href="index.html"><i class="la la-home"></i><span data-i18n="nav.dash.main" class="menu-title">Dashboard <span class="badge badge-info float-right">5</span></span></a>
                                <ul class="menu-content">
                                    <li><a href="dashboard-project.html" data-i18n="nav.dash.project" class="menu-item">Project</a>
                                    </li>
                                    <li><a href="dashboard-ecommerce.html" data-i18n="nav.dash.ecommerce" class="menu-item">eCommerce</a>
                                    </li>
                                    <li><a href="dashboard-analytics.html" data-i18n="nav.dash.analytics" class="menu-item">Analytics <span class="badge badge-glow badge-danger float-right">New</span></a>
                                    </li>
                                    <li><a href="dashboard-crm.html" data-i18n="nav.dash.crm" class="menu-item">CRM</a>
                                    </li>
                                    <li><a href="dashboard-fitness.html" data-i18n="nav.dash.fitness" class="menu-item">Fitness</a>
                                    </li>
                                </ul>
                            </li>
                            <li class=" nav-item"><a href="#"><i class="la la-sticky-note"></i><span data-i18n="nav.templates.main" class="menu-title">Templates <span class="badge badge-success float-right">7</span></span></a>
                                <ul class="menu-content">
                                    <li><a href="#" data-i18n="nav.templates.vert.main" class="menu-item">Vertical</a>
                                        <ul class="menu-content">
                                            <li><a href="#" data-i18n="nav.templates.vert.classic_menu" class="menu-item">Classic Menu</a>
                                            </li>
                                            <li><a href="#" data-i18n="nav.templates.vert.overlay_menu" class="menu-item">Overlay Menu</a>
                                            </li>
                                        </ul>
                                    </li>
                                    <li><a href="#" data-i18n="nav.templates.horz.main" class="menu-item">Horizontal</a>
                                        <ul class="menu-content">
                                            <li><a href="#" data-i18n="nav.templates.horz.classic" class="menu-item">Classic</a>
                                            </li>
                                        </ul>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                    </div>
                </div>
                <!-- END main menu-->


              <!-- BEGIN Content-->
              <div class="content app-content">
              <div class="content-wrapper">
              <!-- content header-->
              <div class="content-header row">
              ...
              </div>
              <!-- content header-->

              <!-- content body-->
              <div class="content-body">
              ...
              </div>
              <!-- content body-->

              </div>
              </div>
              <!-- END Content-->

              <!-- START FOOTER DARK-->
              <footer class="footer footer-dark">
              ...
              </footer>
              <!-- START FOOTER DARK-->

            </body>
            </html>
          
          

Theme Customizer


Customize & Preview in Real Time

Menu Color Options

Layout Options

Navigation Color Options
Solid
Gradient

Solid

Gradient

Buy Now