reactjs - How to customize a component on React Bootstrap -
i'm trying out react bootstrap , want change customize nav. i'm doing this.
const navinstance = ( <nav bsstyle='pills'> <navitem eventkey={1} href='/home'>navitem 1 content</navitem> </nav> ); react.render(navinstance, document.queryselector('.container'));
any thoughts how change color? also, how affix nav top, such when page scrolls, nav stays fixed?
i believe missing navbar component parent. component should following:
<navbar fixedtop> <nav> <navitem eventkey={1} href='#'>link</navitem> <navitem eventkey={2} href='#'>link</navitem> </nav> </navbar>
the fixedtop prop keep fixed adding appropriate classes bootstrap.css. changing of colors override of css classes , should go.
Comments
Post a Comment