> For the complete documentation index, see [llms.txt](https://docs.limio.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.limio.com/components/component-library/standard-components/component-header-with-navigation.md).

# Component: Header with Navigation

**Purpose:** A header to display the site logo, with options for a link to a customer's profile and a navigation menu. Use the [Header component](https://docs.limio.com/components/component-library/standard-components/component-header.md) if you are just looking to display a logo.

{% embed url="<https://69c2cf3a42a094f3cd354b8d-hbwumtssfk.chromatic.com/?path=/story/shop-components-layout-header-with-navigation--default&full=1&shortcuts=false&singleStory=true&embed=true>" %}

**Details:**

| **name**             | **type** | **options (if available)** | **default value**                                               | **Purpose**                                                                      |
| -------------------- | -------- | -------------------------- | --------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| Logo                 | string   |                            | <https://s3-eu-west-1.amazonaws.com/limio-public/limiologo.png> | Logo for the header                                                              |
| Logo link            | string   |                            | /                                                               | Link if user clicks on the logo                                                  |
| Logo Text            | string   |                            |                                                                 | If this is filled than the Logo will be removed                                  |
| Height               | number   |                            | 1.25                                                            | Height of header                                                                 |
| Fixed to top?        | boolean  |                            | TRUE                                                            | Floating header or fixed                                                         |
| Navigation bar items | list     |                            |                                                                 | Fields: label, Text                                                              |
| Show profile?        | boolean  |                            | TRUE                                                            | Show profile icon                                                                |
| Profile icon color   | color    |                            | #A7A7A7                                                         | Icon profile picture                                                             |
| Profile icon link    | string   |                            | /mma                                                            | Redirect link of Log In text on profile icon                                     |
| Show basket icon?    | boolean  |                            | FALSE                                                           | Show basket icon                                                                 |
| Basket icon color    | color    |                            | #A7A7A7                                                         | Color of basket icon                                                             |
| Menu button color    | color    |                            | rgba(0,0,0,.5)                                                  | Color of menu icon (mobile)                                                      |
| Menu Button Icon url | string   |                            |                                                                 | Changes the menu icon - NOTE: The colour would depend on the SVG or PNG uploaded |
| Menu Button Text     | string   |                            |                                                                 | Text Placed next to the menu                                                     |
| Component Id         | string   |                            | nav-header-limio                                                |                                                                                  |

**NOTE**: If you want the nav-header component to show in both the **header** and **body** the set the 'Fixed to top?' property to FALSE

## Rendered HTML

The root element and the logo render as this HTML:

```html
<nav class="navbar navbar-expand-lg navbar-light fixed-top" id="nav-header-limio">
  <input type="checkbox" id="navbar-toggle-cbox" />
  <a class="navbar-brand" href="/" style="height: 50px; line-height: 25px;">
    <img class="header-logo" src="LOGO_URL" alt="Header logo" />
  </a>
  ...
</nav>
```

| Element          | Selector                                                                   | Notes                                                                                                                                                      |
| ---------------- | -------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Root             | `nav.navbar`, or `#` and the value of **Component Id**                     | The `fixed-top` class is there only when **Fixed to top?** is true. The Page Builder preview does not add it.                                              |
| Logo link        | `a.navbar-brand`                                                           | The `href` is the value of **Logo link**. The inline `height` is 40px multiplied by **Height**. The inline `line-height` is 20px multiplied by **Height**. |
| Logo image       | `img.header-logo`                                                          | Renders when **Logo Text** is empty. The image is a child of the logo link. The stylesheet of the component sets its height to 100% of the logo link.      |
| Logo text        | `div.navbar-logo-text`                                                     | Renders in the logo link, in place of the image, when **Logo Text** has a value.                                                                           |
| Menu button      | `label.navbar-toggler`                                                     | Contains an element with the `navbar-toggler-icon` class.                                                                                                  |
| Navigation items | `div#navbar.navbar-collapse`, `ul.navbar-nav`, `li.nav-item`, `a.nav-link` | Renders when **Navigation bar items** has one item or more. Each element is inside the element before it in this list.                                     |
| Profile icon     | `.profile-button`                                                          | Renders when **Show profile?** is true.                                                                                                                    |
| Basket icon      | `.basket-button`                                                           | Renders when **Show basket icon?** is true.                                                                                                                |

Because the height of the logo image comes from the logo link, change the **Height** prop to change the size of the logo.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.limio.com/components/component-library/standard-components/component-header-with-navigation.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
