Social media icons navbar

Bootstrap 5 Social media icons navbar component

Responsive Social media icons navbar built with Bootstrap 5. Example of navbar with social media icons.


Basic example

For more advanced icon options have a look at the Icons docs and Buttons docs.

        
            
                <!-- Navbar -->
                <nav class="navbar navbar-expand-lg navbar-dark bg-primary">
                    <!-- Container wrapper -->
                    <div class="container">
                        <a class="navbar-brand text mb-1">Navbar</a>

                        <!-- Toggle button -->
                        <button data-mdb-button-init class="navbar-toggler text-white" type="button" data-mdb-collapse-init data-mdb-target="#navbarButtonsExample" aria-controls="navbarButtonsExample" aria-expanded="false" aria-label="Toggle navigation">
                            <i class="fas fa-bars"></i>
                        </button>

                        <!-- Collapsible wrapper -->
                        <div class="collapse navbar-collapse" id="navbarButtonsExample">
                            <!-- Left links -->
                            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                                <li class="nav-item">
                                    <a class="nav-link" href="#">Home</a>
                                </li>
                            </ul>
                            <!-- Left links -->

                            <ul class="navbar-nav d-flex flex-row">
                                <!-- Icons -->
                                <li class="nav-item me-3 me-lg-0">
                                    <a class="nav-link" href="#">
                                        <i class="fab fa-facebook-f text-white"></i>
                                    </a>
                                </li>
                                <li class="nav-item me-3 me-lg-0">
                                    <a class="nav-link" href="#">
                                        <i class="fab fa-instagram text-white"></i>
                                    </a>
                                </li>
                                <li class="nav-item me-3 me-lg-0">
                                    <a class="nav-link" href="#">
                                        <i class="fab fa-linkedin text-white"></i>
                                    </a>
                                </li>
                                <li class="nav-item me-3 me-lg-0">
                                    <a class="nav-link" href="#">
                                        <i class="fab fa-github text-white"></i>
                                    </a>
                                </li>
                                <li class="nav-item me-3 me-lg-0">
                                    <a class="nav-link" href="#">
                                        <i class="fab fa-twitter text-white"></i>
                                    </a>
                                </li>
                                <!-- Icon dropdown -->
                                <li class="nav-item me-3 me-lg-0 dropdown">
                                    <a data-mdb-dropdown-init class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-mdb-toggle="dropdown" aria-expanded="false">
                                        <i class="fas fa-user text-white"></i>
                                    </a>
                                    <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
                                        <li>
                                            <a class="dropdown-item" href="#">Action</a>
                                        </li>
                                        <li>
                                            <a class="dropdown-item" href="#">Another action</a>
                                        </li>
                                        <li><hr class="dropdown-divider" /></li>
                                        <li>
                                            <a class="dropdown-item" href="#">Something else here</a>
                                        </li>
                                    </ul>
                                </li>
                            </ul>
                        </div>
                        <!-- Collapsible wrapper -->
                    </div>
                    <!-- Container wrapper -->
                </nav>
                <!-- Navbar -->