react-icons/hi#HiMenuAlt3 JavaScript Examples
The following examples show how to use
react-icons/hi#HiMenuAlt3.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Navbar.jsx From Socialgram with Apache License 2.0 | 5 votes |
ListItems = () => {
const links = [
{
name: "Home",
icon: <FaHome />,
link: "/homepage",
},
{
name: "Profile",
icon: <FaUserAlt />,
link: "/homepage/profile",
},
{
name: "My Post",
icon: <FaStickyNote />,
link: "/homepage/myposts",
},
{
name: "Settings",
icon: <FaCog />,
link: "/homepage/settings",
},
];
return (
<div class="dropdown dropstart">
<button
class="btn btn-secondary dropdown-toggle"
type="button"
id="dropdownMenuButton2"
data-bs-toggle="dropdown"
aria-expanded="false"
>
{/* Dropdown button */}
<HiMenuAlt3 />
</button>
<ul
class="dropdown-menu dropdown-menu-dark"
aria-labelledby="dropdownMenuButton2"
>
{links.map((item, idx) => (
<li key={idx}>
<NavLink to={item.link} end={true} className="dropdown-item">
{/* {item.icon} */}
<span className="ms-3">{item.name}</span>
</NavLink>
</li>
))}
<li>
<hr className="dropdown-divider" />
</li>
<li>
<a
href="!#"
data-bs-toggle="modal"
data-bs-target="#exampleModal"
class="dropdown-item"
>
Logout
</a>
</li>
</ul>
</div>
);
}