commit 09bd37a4666cf58f166b7fcf6ddb0b7db17ad31b parent 302a26faece6ed37e8dec61bf85b71fe9d076f32 Author: Agastya Chandrakant <me@hanabi.in> Date: Mon, 18 May 2020 11:15:03 +0530 button now works Diffstat:
M | src/comp/header.js | | | 32 | ++++++++++++++++++++++++++++++-- |
1 file changed, 30 insertions(+), 2 deletions(-)
diff --git a/src/comp/header.js b/src/comp/header.js @@ -9,7 +9,7 @@ function Header() { 🌐 </span> </Link> - {/* <button + <button className="navbar-toggler" type="button" data-toggle="collapse" @@ -19,7 +19,7 @@ function Header() { aria-label="Toggle navigation" > <span className="navbar-toggler-icon"></span> - </button> */} + </button> <div className="collapse navbar-collapse" id="navbarNav"> <ul className="navbar-nav"> <li className="nav-item"> @@ -43,4 +43,32 @@ function Header() { ); } +function Header1() { + return ( + <div className="dropdown"> + <button + className="btn btn-secondary dropdown-toggle" + type="button" + id="dropdownMenuButton" + data-toggle="dropdown" + aria-haspopup="true" + aria-expanded="false" + > + Dropdown button + </button> + <div className="dropdown-menu" aria-labelledby="dropdownMenuButton"> + <a className="dropdown-item" href="#"> + Action + </a> + <a className="dropdown-item" href="#"> + Another action + </a> + <a className="dropdown-item" href="#"> + Something else here + </a> + </div> + </div> + ); +} + export default Header;