{# API #}
{%- set props = props | default([]) -%}
{%- set _className = props.className -%}
{%- set _elementType = props.elementType | default('div') -%}
{%- set _helperText = props.helperText | default(null) -%}
{%- set _id = props.id | default(null) -%}
{%- set _unsafeHelperText = props.UNSAFE_helperText | default(null) -%}

{# Attributes #}
{%- set _idAttr = _id ? 'id="' ~ _id | escape('html_attr') ~ '"' : null -%}

{% if _helperText or _unsafeHelperText %}
    <{{ _elementType }} class="{{ _className }}" {{ _idAttr | raw }}>
        {% if _helperText and not _unsafeHelperText %}
            {{ _helperText }}
        {% else %}
            {{ _unsafeHelperText | raw }}
        {% endif %}
    </{{ _elementType }}>
{% endif %}
