Navbar
Getting Started
Navbar is a list of secondary links. Part of the Bolt “Components” CSS framework that powers the Bolt Design System.
Install via NPM
npm install @bolt/components-navbar
Usage
{% include "@bolt-components-navbar/navbar.twig" with {
title: {
tag: "h2",
text: "Title Text",
icon: {
name: "icon-name"
}
},
links: [
{
text: "Link 1 Text",
url: "#!"
},
{
text: "Link 2 Text",
url: "#!"
},
{
text: "Link 3 Text",
url: "#!"
}
]
} only %}
Schema
Name | Type | Value(s) | Description | Default |
---|---|---|---|---|
theme | string
|
|
Color theme. Can be set to 'none' for a transparent background. |
dark
|
title | object
|
|
Navbar title. Icon is optional. Tag can be set to h1 to h6 depending on the page. |
N/A |
center | boolean
|
|
Determines if you want the Navbar content to be center aligned or not |
N/A |
width | string
|
|
Adjusts the Navbar's overall maximum width behavior -- either filling up the entire browser's total screen width (full) or just the component's parent container width (auto). |
full
|
links | array
|
|
(Inherited from nav-priority) Array of links |
N/A |
moreText | string
| |
(Inherited from nav-priority) Button text that displays when the Priority+ Nav Dropdown is displayed. |
More
|
offset | integer
| |
(Inherited from nav-indicator) Number of pixels taken up by sticky items at the top of the page. Used for smooth scroll and gumshoe. |
N/A |