Comments (9)
Sorry this component has not been implemented yet. Currently the Nav
component only supports Pills and Tabs. Pull requests welcome :)
from react-bootstrap.
Saw Steve committed a Navbar, so I integrated that into a Navbar implementation I've been working on which I just put into a react-bootstrap fork at https://github.com/ENCODE-DCC/react-bootstrap. I don’t know if it’s the model Steve was thinking of, but it uses Nav and NavItem, in this style:
<Navbar…>
<Nav…>
<NavItem…>Item 1</NavItem>
<NavItem…>Item 2</NavItem>
</Nav>
</Navbar>
Since our project needs dropdowns and forms, I integrated those too (though my Forms component barely does anything; I don’t want to delve any further into that). I modified both Nav and NavItem components to be aware of navbar and dropdown classes. So far, I have done minimal testing.
from react-bootstrap.
@forresttanaka thanks. I don't think I'll be adding this functionality into the library tho. I think the NavBar
should remain more flexible. If the user wants to add a brand link and collapsible menu they can but I don't think we'll bake it in.
from react-bootstrap.
OK. Thanks for taking a look!
from react-bootstrap.
Think I will extend this a bit with brand
and collapseNavKey
props.
brand
is a renderable and if present a navbar-header
is added with the brand in.
If toggleNavKey
is present, we add the navbar-toggle
button which does the animation to the child with that key.
from react-bootstrap.
+1
from react-bootstrap.
brand
and toggleNavKey
have been added but I'm thinking of creating a Collapse
component which would wrap a Nav
instead of having the collapsing behaviour in the Nav
itself. toggleNavKey
would change to collapseKey
I think.
from react-bootstrap.
@stevoland Is this resolved by #110 ?
from react-bootstrap.
@pieterv No it's not but I changed my mind about it. I think I'll leave it as it is. At least for now.
from react-bootstrap.
Related Issues (20)
- null is not an object (evaluating 'ye.scrollHeight') HOT 1
- Feature Select component with search HOT 1
- Bug - Page Not Found for Tabs Doc Site HOT 3
- Dropdown should overlay the parent container HOT 1
- Alignment of button text in grid changes if href tag is set HOT 1
- Feature Request: Custom Anchor element for PageItem
- Button is not responsive inside the MODAL HOT 3
- defaultActiveKey and alwaysOpen not working properly at the same time HOT 1
- Error using components HOT 1
- NextJS <Link> giving error with react-bootstrap <Navbar.Link> HOT 1
- Docs - Components props tables are missing
- Tabs Component doesn't pass id attribute to underlying element HOT 1
- aria-label for DropdownButton HOT 2
- React Bootstrap doesn't let me set background color HOT 1
- Bug: OverlayTrigger doesn't hide after modal close. HOT 5
- Rendering children (Accordion) HOT 1
- Modal component stop working when closed HOT 6
- Keyboard input Tab + Shift escapes Modal's focus HOT 3
- ESC and Up/Down in Dropdown doesn't work when using the native Bootstrap HOT 2
- Suggest adding 'use client’ for all the react-bootstrap component HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-bootstrap.