Last updated
{block_tab}
{if bloqs:is:first_child}
<div role="tablist">
{/if}
<button
role="tab"
aria-controls="{tab_id}"
tabindex="0"
aria-selected="{if bloqs:is:first_child}true{if:else}false{/if}"
data-text="{tab_label:attr_safe}"
>
{tab_label}
</button>
{if bloqs:is:last_child}
</div>
{/if}
{/block_tab}
{block_tab}
{if bloqs:is:first_child}
<div class="tab-group__panel-container">
{/if}
<div
id="{tab_id}"
role="tabpanel"
aria-expanded="{if bloqs:is:first_child}true{if:else}false{/if}"
>
{bloqs:children}
</div>
{if bloqs:is:last_child}
</div>
{/if}
{/block_tab}{bloqs_field}
{asset_field}
{!-- Looping over multiple files in an Assets field --}
{asset_field:file}
<img src="{url}" />
{/asset_field:file}
{!-- Displaying a single file in an Assets field --}
{asset_field}
<img src="{file:url}" />
{/asset_field}
{/asset_field}
{/bloqs_field}