Skip to main content
/
/
/
Setup example

Setup example

Other examples

Basic app structure

Bifrost is here to help create a consistent look and feel for all Intility web apps, and as such we recommend you use the <Nav> component for main app menus.

Usually you will do something like <NavLink to='/path'> instead of <a href='#path'> in the example below.

If you use <NavLink> from react-router it will add an .active css class if the link matches the current page, but you can also use className='active' on <a> or <Link> to mark the menu item as currently active.

Responsive navigation

By default, the <Nav> component will provide a mobile-friendly fullscreen menu, with the contents passed to the side prop. A hamburger button to open the mobile menu will appear in the top bar for screens smaller than 960px wide, and at the same breakpoint the sidebar is hidden.