Skip to content

Commit

Permalink
Feat(web-twig): Introduce Header Navbar Actions 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 66b5b1a commit 10730ca
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/web-twig/src/Resources/components/navbarActions.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{% set _className = _spiritClassPrefix ~ 'Header__actions' %}
{% set _class = (props.class is defined) ? ' ' ~ props.class : '' %}
{% set _color = (props.color is defined) ? ' ' ~ _className ~ '--' ~ props.color : ' ' ~ _className ~ '--primary' %}

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

0 comments on commit 10730ca

Please sign in to comment.