Tags sharing
Information
- Folder
src/components/patterns/tags-sharing
Files
Schema
$schema: http://json-schema.org/draft-07/schema#
$id: /patterns/tags-sharing
additionalProperties: false
required:
- sharing
properties:
tags:
$ref: /elements/tags
sharing:
$ref: /elements/share
Mocks
tags:
$ref: /elements/tags
sharing:
$ref: /elements/share
Template
<div class="TagsSharing u-container{% if class %} {{ class }}{% endif %}">
<div class="TagsSharing-container">
{% include "@elements/share/share.html.twig" with sharing only %}
{% if tags %}
{% set tags = tags|merge({class: "TagsSharing-tags"}) %}
{% include "@elements/tags/tags.html.twig" with tags only %}
{% endif %}
</div>
</div>
Variants