Overview
The navbar or the app header provides context through globally accessible menu options and positions a consistent component to connect various Trimble applications and contains the main navigation for your application.
Blue Variant
An alternative blue variant is available. Add the class `navbar-blue` to the navbar.
Navbar without Menu button
You can omit the navbar menu button if it isn’t needed.
API
Navbar
import Navbar from `@trimbleinc/modus-react-bootstrap/Navbar`| Name | Type | Default | Description |
|---|---|---|---|
| as | elementType | Set a custom element for this component. | |
| bg | string | A convenience prop for adding Pairs nicely with the | |
| collapseOnSelect | boolean | false | Toggles Manually controlling |
| expand | true | 'sm' | 'md' | 'lg' | 'xl' | true | The breakpoint, below which, the Navbar will collapse.
When |
| expanded | boolean | controlled by: onToggle, initial prop: defaultExpandedControls the visiblity of the navbar body | |
| fixed | 'top' | 'bottom' | Create a fixed navbar along the top or bottom of the screen, that scrolls with the
page. A convenience prop for the | |
| onSelect | function | A callback fired when a descendant of a child For basic closing behavior after all Note: If you are manually closing the navbar using this | |
| onToggle | function | controls expandedA callback fired when the | |
| role | string | 'navigation' | The ARIA role for the navbar, will default to 'navigation' for
Navbars whose |
| sticky | 'top' | Position the navbar at the top of the viewport, but only after scrolling past it.
A convenience prop for the Not supported in <= IE11 and other older browsers without a polyfill | |
| variant | 'light' | 'dark' | 'light' | The general visual variant a the Navbar.
Use in combination with the |
| bsPrefix | string | 'navbar' |
Navbar.Brand
import Navbar.Brand from `@trimbleinc/modus-react-bootstrap/Navbar.Brand`| Name | Type | Default | Description |
|---|---|---|---|
| as | elementType | Set a custom element for this component. | |
| href | string | An href, when provided the Brand will render as an | |
| bsPrefix | string | 'navbar' |
Navbar.Toggle
import Navbar.Toggle from `@trimbleinc/modus-react-bootstrap/Navbar.Toggle`| Name | Type | Default | Description |
|---|---|---|---|
| as | elementType | <button> | |
| children | node | The toggle content. When empty, the default toggle will be rendered. | |
| label | string | 'Toggle navigation' | An accessible ARIA label for the toggler button. |
| onClick | function | ||
| bsPrefix | string | 'navbar-toggler' |
Navbar.Collapse
import Navbar.Collapse from `@trimbleinc/modus-react-bootstrap/Navbar.Collapse`| Name | Type | Default | Description |
|---|---|---|---|
| bsPrefix | string | 'navbar-collapse' |