-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(v5): Update dropdown - Set default element of DropdownDivider to hr - Add variant prop for DropdownMenu - Add menuVariant prop for DropdownButton and NavDropdown * Add active state to dark dropdown example to showcase highlight
- Loading branch information
Showing
12 changed files
with
146 additions
and
3 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<> | ||
<Dropdown> | ||
<Dropdown.Toggle id="dropdown-button-dark-example1" variant="secondary"> | ||
Dropdown Button | ||
</Dropdown.Toggle> | ||
|
||
<Dropdown.Menu variant="dark"> | ||
<Dropdown.Item href="#/action-1" active> | ||
Action | ||
</Dropdown.Item> | ||
<Dropdown.Item href="#/action-2">Another action</Dropdown.Item> | ||
<Dropdown.Item href="#/action-3">Something else</Dropdown.Item> | ||
<Dropdown.Divider /> | ||
<Dropdown.Item href="#/action-4">Separated link</Dropdown.Item> | ||
</Dropdown.Menu> | ||
</Dropdown> | ||
|
||
<DropdownButton | ||
id="dropdown-button-dark-example2" | ||
variant="secondary" | ||
menuVariant="dark" | ||
title="Dropdown button" | ||
className="mt-2" | ||
> | ||
<Dropdown.Item href="#/action-1" active> | ||
Action | ||
</Dropdown.Item> | ||
<Dropdown.Item href="#/action-2">Another action</Dropdown.Item> | ||
<Dropdown.Item href="#/action-3">Something else</Dropdown.Item> | ||
<Dropdown.Divider /> | ||
<Dropdown.Item href="#/action-4">Separated link</Dropdown.Item> | ||
</DropdownButton> | ||
</>; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<Navbar variant="dark" bg="dark" expand="lg"> | ||
<Container fluid> | ||
<Navbar.Brand href="#home">React-Bootstrap</Navbar.Brand> | ||
<Navbar.Toggle aria-controls="navbar-dark-example" /> | ||
<Navbar.Collapse id="navbar-dark-example"> | ||
<Nav> | ||
<NavDropdown | ||
id="nav-dropdown-dark-example" | ||
title="Dropdown" | ||
menuVariant="dark" | ||
> | ||
<NavDropdown.Item href="#action/3.1">Action</NavDropdown.Item> | ||
<NavDropdown.Item href="#action/3.2">Another action</NavDropdown.Item> | ||
<NavDropdown.Item href="#action/3.3">Something</NavDropdown.Item> | ||
<NavDropdown.Divider /> | ||
<NavDropdown.Item href="#action/3.4">Separated link</NavDropdown.Item> | ||
</NavDropdown> | ||
</Nav> | ||
</Navbar.Collapse> | ||
</Container> | ||
</Navbar>; |
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
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