{% extends "layouts/base.html" %} {% block body %} {% set inlineSearchHtml %} {{ mspSearch({ classes: 'msp-search--ondark msp-search--inline', input: { id: 'search1', name: 'search1' }, label: { text: 'Hledat', classes: 'govuk-visually-hidden' }, button: { text: 'Hledat' } }) }} {% endset %} {% set toggleSearchHtml %}
{% endset %}

Primární navigace

Pouze navigace

{{ mspPrimaryNavigation({ label: 'Primární navigace', items: [{ text: 'Nav položka 1', href: '#1', active: true }, { text: 'Nav položka 2', href: '#2' }, { text: 'Nav položka 3', href: '#3' }] }) }}

S inline vyhledávačem

{{ mspPrimaryNavigation({ label: 'Primární navigace', items: [{ text: 'Nav položka 1', href: '#1', active: true }, { text: 'Nav položka 2', href: '#2' }, { text: 'Nav položka 3', href: '#3' }], searchHtml: inlineSearchHtml }) }}

S přepínačem vyhledávání

{{ mspPrimaryNavigation({ label: 'Primární navigace', items: [{ text: 'Nav položka 1', href: '#1', active: true }, { text: 'Nav položka 2', href: '#2' }, { text: 'Nav položka 3', href: '#3' }], searchHtml: toggleSearchHtml }) }} {% endblock %} {% block pageScripts %} {% endblock %}