Giter VIP home page Giter VIP logo

Comments (9)

pieterv avatar pieterv commented on April 27, 2024

Sorry this component has not been implemented yet. Currently the Nav component only supports Pills and Tabs. Pull requests welcome :)

from react-bootstrap.

forresttanaka avatar forresttanaka commented on April 27, 2024

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.

stevoland avatar stevoland commented on April 27, 2024

@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.

forresttanaka avatar forresttanaka commented on April 27, 2024

OK. Thanks for taking a look!

from react-bootstrap.

stevoland avatar stevoland commented on April 27, 2024

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.

mingfang avatar mingfang commented on April 27, 2024

+1

from react-bootstrap.

stevoland avatar stevoland commented on April 27, 2024

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.

pieterv avatar pieterv commented on April 27, 2024

@stevoland Is this resolved by #110 ?

from react-bootstrap.

stevoland avatar stevoland commented on April 27, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.