{% macro govukTabs(params) %}
{#- If an id 'prefix' is not passed, fall back to using the name attribute
instead. We need this for error messages and hints as well -#}
{% set idPrefix = params.idPrefix if params.idPrefix else '' -%}
{{ params.title | default ("Contents") }}
{% if 'items' in params and params['items'] | length %}
{% for item in params['items'] %}
{% if item %}
{% set id = item.id if item.id else idPrefix + "-" ~ loop.index %}
{% endif %}
{% if 'items' in params and params['items'] | length %}
{% for item in params['items'] %}
{% if item %}
{% set id = item.id if item.id else idPrefix + "-" ~ loop.index %}
{{ item.panel.html | safe if item.panel.html else item.panel.text }}