Skip to content

Commit

Permalink
Feat(web-twig): Introduce Header Navbar component (refs #DS-161)
Browse files Browse the repository at this point in the history
  • Loading branch information
literat committed Jul 30, 2022
1 parent 74c6d96 commit a1a2726
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/web-twig/src/Resources/components/navbar.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{% set _className = _spiritClassPrefix ~ 'Header' %}
{% set _variant = (props.variant is defined) ? ' ' ~ _className ~ '__' ~ props.variant : ' ' ~ _className ~ '__bar' %}
{% set _class = (props.class is defined) ? ' ' ~ props.class : '' %}

<nav class="{{ _className }}{{ _class }}">
<div class="{{ _className }}__content">
{% block content %}{% endblock %}
</div>
</nav>

0 comments on commit a1a2726

Please sign in to comment.