forked from react-bootstrap/react-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[added] Docs example of passing component to navbar brand.
- Loading branch information
Showing
3 changed files
with
23 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const navbarInstance = ( | ||
<Navbar brand={<a href="#">React-Bootstrap</a>}> | ||
<Nav> | ||
<NavItem eventKey={1} href='#'>Link</NavItem> | ||
<NavItem eventKey={2} href='#'>Link</NavItem> | ||
<DropdownButton eventKey={3} title='Dropdown'> | ||
<MenuItem eventKey='1'>Action</MenuItem> | ||
<MenuItem eventKey='2'>Another action</MenuItem> | ||
<MenuItem eventKey='3'>Something else here</MenuItem> | ||
<MenuItem divider /> | ||
<MenuItem eventKey='4'>Separated link</MenuItem> | ||
</DropdownButton> | ||
</Nav> | ||
</Navbar> | ||
); | ||
|
||
React.render(navbarInstance, mountNode); |
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