# \<mc-navigation-link>

This component is used to generate a link to a site page from another component (e.g. site header). This tag is equivalent of **\<router-link>** tag of Vue router for Piston components.

This tag exposes three properties which we will understand in detail with the help of examples -

```html
<mc-navigation-link 
   title=""
   uriPrefix=""
   mapping="" 
/>
```

* **title** - This prop renders the label for the navigation link.
* **uriPrefix** - This prop represents the uri of the parent node relative to the url of a MechCloud site.
* **mapping** - This prop captures the mapping for this node.

Let's say you want to create a link to a first level site node with **Administration** as title and **administration** as mapping. You can generate a link to such a site node using following code -

```html
<mc-navigation-link
   title="Administration"
   uriPrefix=""
   mapping="administration" 
/>
```

If **Administration** node is having a child node with **Teams** as title and mapping as **teams** then you can create a link for same using following code -

```html
<mc-navigation-link
   title="Teams"
   uriPrefix="administration"
   mapping="teams" 
/>
```

If **Teams** node is having a child node with **Users** as title and mapping as **users** then you can create a link for same using following code -

```html
<mc-navigation-link
   title="Users"
   uriPrefix="administration/teams"
   mapping="users" 
/>
```


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mechcloud.io/dashboard-builder/special-tags/less-than-mc-navigation-link-greater-than.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
