# link

One link of a menu, with its submenu and an optional mega-menu panel.

<!-- Generated by `bin/console app:dev:reference` from the platform code and docs/dev/_data/. Do not edit by hand. -->

One link of a menu, with its submenu and an optional mega-menu panel.

Available on: settings that point at it.

## Properties

| Property | Type | Description |
| --- | --- | --- |
| `link.title` | string | Link text. |
| `link.url` | string | Link address. |
| `link.type` | string | What the link points at - `home`, `page`, `post`, `blog`, `product`, `category` or `url`. |
| `link.newTab` | boolean | True when the merchant wants the link to open in a new tab. |
| `link.active` | boolean | True when the link is the current page. |
| `link.childActive` | boolean | True when the link or anything below it is the current page - highlight the top-level item. |
| `link.links` | list of [`link`](link.md) | The next level of the menu. |
| `link.levels` | number | How many link levels the panel holds - 1 is a plain dropdown, 2 or more are columns. |
| `link.hasPanel` | boolean | True when the link opens a panel on hover. |
| `link.panel` | string | Panel mode - `links`, `html_links` or `html`. |
| `link.panelHtml` | string | The merchant's own HTML for the panel, sanitised. |
| `link.featured` | [`product`](product.md) or null | An offer the merchant pinned to the panel. |
| `link.category` | [`category`](category.md) or null | The category of a category link. |
| `link.hasChildren` | boolean | True when there are subcategories, loaded or still to load. |
| `link.childrenUrl` | string or null | JSON with the next level (see the menu API). |

