Created
March 28, 2021 10:03
-
-
Save code08-ind/7e653787515cd882208a422f4f4f873d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import '../node_modules/bootstrap/dist/css/bootstrap.min.css'; | |
import '../node_modules/bootstrap/dist/js/bootstrap.bundle'; | |
const Navbar = () => { | |
return ( | |
<> | |
<nav className="navbar navbar-expand-lg navbar-light"> | |
<div className="container-fluid"> | |
<a className="navbar-brand" href="/">Navbar</a> | |
<button className="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> | |
<span className="navbar-toggler-icon"></span> | |
</button> | |
<div className="collapse navbar-collapse" id="navbarSupportedContent"> | |
<ul className="navbar-nav me-auto mb-2 mb-lg-0"> | |
<li className="nav-item"> | |
<a className="nav-link active" aria-current="page" href="/">Home</a> | |
</li> | |
<li className="nav-item"> | |
<a className="nav-link" href="/">Link</a> | |
</li> | |
<li className="nav-item dropdown"> | |
<a className="nav-link dropdown-toggle" href="/" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"> | |
Dropdown | |
</a> | |
<ul className="dropdown-menu" aria-labelledby="navbarDropdown"> | |
<li><a className="dropdown-item" href="/">Action</a></li> | |
<li><a className="dropdown-item" href="/">Another action</a></li> | |
<li><hr className="dropdown-divider" /></li> | |
<li><a className="dropdown-item" href="/">Something else here</a></li> | |
</ul> | |
</li> | |
<li className="nav-item"> | |
<a className="nav-link disabled" href="/" tabindex="-1" aria-disabled="true">Disabled</a> | |
</li> | |
</ul> | |
<form className="d-flex"> | |
<input className="form-control me-2" type="search" placeholder="Search" aria-label="Search" /> | |
<button className="btn btn-outline-success" type="submit">Search</button> | |
</form> | |
</div> | |
</div> | |
</nav> | |
</> | |
); | |
} | |
export default Navbar; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment