<p>
Use options to customise the appearance, content and behaviour of a component when using a macro, for example, changing the text.
</p>
<p>
Some options are required for the macro to work; these are marked as "Required" in the option description.
</p>
<p>
If you're using Nunjucks macros in production with "html" options, or ones ending with "html", you must sanitise the HTML to protect against <a href="https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting">cross-site scripting exploits</a>.
</p>
<table class="govuk-table app-options__table" id="options-default-1--primary">
<caption class="govuk-table__caption govuk-heading-m govuk-visually-hidden">Primary options</caption>
<thead class="govuk-table__head">
<tr class="govuk-table__row">
<th class="govuk-table__header app-options__limit-table-cell" scope="col">Name</th>
<th class="govuk-table__header app-options__limit-table-cell" scope="col">Type</th>
<th class="govuk-table__header" scope="col">Description</th>
</tr>
</thead>
<tbody class="govuk-table__body">
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">homepageUrl</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
The URL of the homepage. Defaults to <code>/</code>
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">assetsPath</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
The public path for the assets folder. If not provided it defaults to /assets/images
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">productName</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
Product name, used when the product name follows on directly from ‘GOV.UK’. For example, GOV.UK Pay or GOV.UK Design System. In most circumstances, you should use <code>serviceName</code>.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">serviceName</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
The name of your service, included in the header.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">serviceUrl</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
URL for the service name anchor.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">navigation</th>
<td class="govuk-table__cell ">array</td>
<td class="govuk-table__cell ">
An array of navigation item objects.
See <a href="#options-default-1--navigation">navigation</a>.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">navigationClasses</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
Classes for the navigation section of the header.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">navigationLabel</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
Text for the <code>aria-label</code> attribute of the navigation. Defaults to the same value as <code>menuButtonText</code>.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">menuButtonLabel</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
Text for the <code>aria-label</code> attribute of the button that opens the mobile navigation, if there is a mobile navigation menu. Defaults to 'Show or hide menu'.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">menuButtonText</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
Text of the button that opens the mobile navigation menu, if there is a mobile navigation menu. There is no enforced character limit, but there is a limited display space so keep text as short as possible. By default, this is set to 'Menu'.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">containerClasses</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
Classes for the container, useful if you want to make the header fixed width.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">classes</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
Classes to add to the header container.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">attributes</th>
<td class="govuk-table__cell ">object</td>
<td class="govuk-table__cell ">
HTML attributes (for example data attributes) to add to the header container.
</td>
</tr>
</tbody>
</table>
<table class="govuk-table app-options__table" id="options-default-1--navigation">
<caption class="govuk-table__caption govuk-heading-m ">Options for navigation</caption>
<thead class="govuk-table__head">
<tr class="govuk-table__row">
<th class="govuk-table__header app-options__limit-table-cell" scope="col">Name</th>
<th class="govuk-table__header app-options__limit-table-cell" scope="col">Type</th>
<th class="govuk-table__header" scope="col">Description</th>
</tr>
</thead>
<tbody class="govuk-table__body">
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">text</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
<strong>Required.</strong>
Text for the navigation item. If <code>html</code> is provided, the <code>text</code> option will be ignored.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">html</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
<strong>Required.</strong>
HTML for the navigation item. If <code>html</code> is provided, the <code>text</code> option will be ignored.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">href</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
URL of the navigation item anchor.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">active</th>
<td class="govuk-table__cell ">boolean</td>
<td class="govuk-table__cell ">
Flag to mark the navigation item as active or not.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">attributes</th>
<td class="govuk-table__cell ">object</td>
<td class="govuk-table__cell ">
HTML attributes (for example data attributes) to add to the navigation item anchor.
</td>
</tr>
</tbody>
</table>
If you use the page template, you'll also get the header without having to add it, as it's included by default. However, if you want to customise the default header, read the page template guidance about customising components.
When to use this component
You must use the GOV.UK header at the top of every page if your service is being hosted on one of these domains:
gov.uk/myservice
myservice.service.gov.uk
myblog.blog.gov.uk
When not to use this component
You must not use the GOV.UK header if your service is not being hosted on one of the above domains.
How it works
Default header
Use the default header if your service has 5 pages or fewer.
<p>
Use options to customise the appearance, content and behaviour of a component when using a macro, for example, changing the text.
</p>
<p>
Some options are required for the macro to work; these are marked as "Required" in the option description.
</p>
<p>
If you're using Nunjucks macros in production with "html" options, or ones ending with "html", you must sanitise the HTML to protect against <a href="https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting">cross-site scripting exploits</a>.
</p>
<table class="govuk-table app-options__table" id="options-header-second-example--primary">
<caption class="govuk-table__caption govuk-heading-m govuk-visually-hidden">Primary options</caption>
<thead class="govuk-table__head">
<tr class="govuk-table__row">
<th class="govuk-table__header app-options__limit-table-cell" scope="col">Name</th>
<th class="govuk-table__header app-options__limit-table-cell" scope="col">Type</th>
<th class="govuk-table__header" scope="col">Description</th>
</tr>
</thead>
<tbody class="govuk-table__body">
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">homepageUrl</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
The URL of the homepage. Defaults to <code>/</code>
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">assetsPath</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
The public path for the assets folder. If not provided it defaults to /assets/images
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">productName</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
Product name, used when the product name follows on directly from ‘GOV.UK’. For example, GOV.UK Pay or GOV.UK Design System. In most circumstances, you should use <code>serviceName</code>.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">serviceName</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
The name of your service, included in the header.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">serviceUrl</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
URL for the service name anchor.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">navigation</th>
<td class="govuk-table__cell ">array</td>
<td class="govuk-table__cell ">
An array of navigation item objects.
See <a href="#options-header-second-example--navigation">navigation</a>.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">navigationClasses</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
Classes for the navigation section of the header.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">navigationLabel</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
Text for the <code>aria-label</code> attribute of the navigation. Defaults to the same value as <code>menuButtonText</code>.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">menuButtonLabel</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
Text for the <code>aria-label</code> attribute of the button that opens the mobile navigation, if there is a mobile navigation menu. Defaults to 'Show or hide menu'.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">menuButtonText</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
Text of the button that opens the mobile navigation menu, if there is a mobile navigation menu. There is no enforced character limit, but there is a limited display space so keep text as short as possible. By default, this is set to 'Menu'.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">containerClasses</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
Classes for the container, useful if you want to make the header fixed width.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">classes</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
Classes to add to the header container.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">attributes</th>
<td class="govuk-table__cell ">object</td>
<td class="govuk-table__cell ">
HTML attributes (for example data attributes) to add to the header container.
</td>
</tr>
</tbody>
</table>
<table class="govuk-table app-options__table" id="options-header-second-example--navigation">
<caption class="govuk-table__caption govuk-heading-m ">Options for navigation</caption>
<thead class="govuk-table__head">
<tr class="govuk-table__row">
<th class="govuk-table__header app-options__limit-table-cell" scope="col">Name</th>
<th class="govuk-table__header app-options__limit-table-cell" scope="col">Type</th>
<th class="govuk-table__header" scope="col">Description</th>
</tr>
</thead>
<tbody class="govuk-table__body">
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">text</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
<strong>Required.</strong>
Text for the navigation item. If <code>html</code> is provided, the <code>text</code> option will be ignored.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">html</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
<strong>Required.</strong>
HTML for the navigation item. If <code>html</code> is provided, the <code>text</code> option will be ignored.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">href</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
URL of the navigation item anchor.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">active</th>
<td class="govuk-table__cell ">boolean</td>
<td class="govuk-table__cell ">
Flag to mark the navigation item as active or not.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">attributes</th>
<td class="govuk-table__cell ">object</td>
<td class="govuk-table__cell ">
HTML attributes (for example data attributes) to add to the navigation item anchor.
</td>
</tr>
</tbody>
</table>
<p>
Use options to customise the appearance, content and behaviour of a component when using a macro, for example, changing the text.
</p>
<p>
Some options are required for the macro to work; these are marked as "Required" in the option description.
</p>
<p>
If you're using Nunjucks macros in production with "html" options, or ones ending with "html", you must sanitise the HTML to protect against <a href="https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting">cross-site scripting exploits</a>.
</p>
<table class="govuk-table app-options__table" id="options-header-with-service-name-example--primary">
<caption class="govuk-table__caption govuk-heading-m govuk-visually-hidden">Primary options</caption>
<thead class="govuk-table__head">
<tr class="govuk-table__row">
<th class="govuk-table__header app-options__limit-table-cell" scope="col">Name</th>
<th class="govuk-table__header app-options__limit-table-cell" scope="col">Type</th>
<th class="govuk-table__header" scope="col">Description</th>
</tr>
</thead>
<tbody class="govuk-table__body">
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">homepageUrl</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
The URL of the homepage. Defaults to <code>/</code>
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">assetsPath</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
The public path for the assets folder. If not provided it defaults to /assets/images
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">productName</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
Product name, used when the product name follows on directly from ‘GOV.UK’. For example, GOV.UK Pay or GOV.UK Design System. In most circumstances, you should use <code>serviceName</code>.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">serviceName</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
The name of your service, included in the header.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">serviceUrl</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
URL for the service name anchor.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">navigation</th>
<td class="govuk-table__cell ">array</td>
<td class="govuk-table__cell ">
An array of navigation item objects.
See <a href="#options-header-with-service-name-example--navigation">navigation</a>.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">navigationClasses</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
Classes for the navigation section of the header.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">navigationLabel</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
Text for the <code>aria-label</code> attribute of the navigation. Defaults to the same value as <code>menuButtonText</code>.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">menuButtonLabel</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
Text for the <code>aria-label</code> attribute of the button that opens the mobile navigation, if there is a mobile navigation menu. Defaults to 'Show or hide menu'.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">menuButtonText</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
Text of the button that opens the mobile navigation menu, if there is a mobile navigation menu. There is no enforced character limit, but there is a limited display space so keep text as short as possible. By default, this is set to 'Menu'.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">containerClasses</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
Classes for the container, useful if you want to make the header fixed width.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">classes</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
Classes to add to the header container.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">attributes</th>
<td class="govuk-table__cell ">object</td>
<td class="govuk-table__cell ">
HTML attributes (for example data attributes) to add to the header container.
</td>
</tr>
</tbody>
</table>
<table class="govuk-table app-options__table" id="options-header-with-service-name-example--navigation">
<caption class="govuk-table__caption govuk-heading-m ">Options for navigation</caption>
<thead class="govuk-table__head">
<tr class="govuk-table__row">
<th class="govuk-table__header app-options__limit-table-cell" scope="col">Name</th>
<th class="govuk-table__header app-options__limit-table-cell" scope="col">Type</th>
<th class="govuk-table__header" scope="col">Description</th>
</tr>
</thead>
<tbody class="govuk-table__body">
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">text</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
<strong>Required.</strong>
Text for the navigation item. If <code>html</code> is provided, the <code>text</code> option will be ignored.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">html</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
<strong>Required.</strong>
HTML for the navigation item. If <code>html</code> is provided, the <code>text</code> option will be ignored.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">href</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
URL of the navigation item anchor.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">active</th>
<td class="govuk-table__cell ">boolean</td>
<td class="govuk-table__cell ">
Flag to mark the navigation item as active or not.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">attributes</th>
<td class="govuk-table__cell ">object</td>
<td class="govuk-table__cell ">
HTML attributes (for example data attributes) to add to the navigation item anchor.
</td>
</tr>
</tbody>
</table>
<p>
Use options to customise the appearance, content and behaviour of a component when using a macro, for example, changing the text.
</p>
<p>
Some options are required for the macro to work; these are marked as "Required" in the option description.
</p>
<p>
If you're using Nunjucks macros in production with "html" options, or ones ending with "html", you must sanitise the HTML to protect against <a href="https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting">cross-site scripting exploits</a>.
</p>
<table class="govuk-table app-options__table" id="options-header-with-service-name-and-navigation-example--primary">
<caption class="govuk-table__caption govuk-heading-m govuk-visually-hidden">Primary options</caption>
<thead class="govuk-table__head">
<tr class="govuk-table__row">
<th class="govuk-table__header app-options__limit-table-cell" scope="col">Name</th>
<th class="govuk-table__header app-options__limit-table-cell" scope="col">Type</th>
<th class="govuk-table__header" scope="col">Description</th>
</tr>
</thead>
<tbody class="govuk-table__body">
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">homepageUrl</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
The URL of the homepage. Defaults to <code>/</code>
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">assetsPath</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
The public path for the assets folder. If not provided it defaults to /assets/images
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">productName</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
Product name, used when the product name follows on directly from ‘GOV.UK’. For example, GOV.UK Pay or GOV.UK Design System. In most circumstances, you should use <code>serviceName</code>.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">serviceName</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
The name of your service, included in the header.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">serviceUrl</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
URL for the service name anchor.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">navigation</th>
<td class="govuk-table__cell ">array</td>
<td class="govuk-table__cell ">
An array of navigation item objects.
See <a href="#options-header-with-service-name-and-navigation-example--navigation">navigation</a>.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">navigationClasses</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
Classes for the navigation section of the header.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">navigationLabel</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
Text for the <code>aria-label</code> attribute of the navigation. Defaults to the same value as <code>menuButtonText</code>.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">menuButtonLabel</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
Text for the <code>aria-label</code> attribute of the button that opens the mobile navigation, if there is a mobile navigation menu. Defaults to 'Show or hide menu'.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">menuButtonText</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
Text of the button that opens the mobile navigation menu, if there is a mobile navigation menu. There is no enforced character limit, but there is a limited display space so keep text as short as possible. By default, this is set to 'Menu'.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">containerClasses</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
Classes for the container, useful if you want to make the header fixed width.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">classes</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
Classes to add to the header container.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">attributes</th>
<td class="govuk-table__cell ">object</td>
<td class="govuk-table__cell ">
HTML attributes (for example data attributes) to add to the header container.
</td>
</tr>
</tbody>
</table>
<table class="govuk-table app-options__table" id="options-header-with-service-name-and-navigation-example--navigation">
<caption class="govuk-table__caption govuk-heading-m ">Options for navigation</caption>
<thead class="govuk-table__head">
<tr class="govuk-table__row">
<th class="govuk-table__header app-options__limit-table-cell" scope="col">Name</th>
<th class="govuk-table__header app-options__limit-table-cell" scope="col">Type</th>
<th class="govuk-table__header" scope="col">Description</th>
</tr>
</thead>
<tbody class="govuk-table__body">
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">text</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
<strong>Required.</strong>
Text for the navigation item. If <code>html</code> is provided, the <code>text</code> option will be ignored.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">html</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
<strong>Required.</strong>
HTML for the navigation item. If <code>html</code> is provided, the <code>text</code> option will be ignored.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">href</th>
<td class="govuk-table__cell ">string</td>
<td class="govuk-table__cell ">
URL of the navigation item anchor.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">active</th>
<td class="govuk-table__cell ">boolean</td>
<td class="govuk-table__cell ">
Flag to mark the navigation item as active or not.
</td>
</tr>
<tr class="govuk-table__row">
<th class="govuk-table__header" scope="row">attributes</th>
<td class="govuk-table__cell ">object</td>
<td class="govuk-table__cell ">
HTML attributes (for example data attributes) to add to the navigation item anchor.
</td>
</tr>
</tbody>
</table>