{% set attributes = attributes ?? create_attribute() %}
{% set heading_attributes = heading_attributes ?? create_attribute() %}
{% set message_attributes = message_attributes ?? create_attribute() %}
<div {{ attributes.setAttribute('role','note').addClass(['note', 'note--' ~ variant]|merge(utility_classes ? utility_classes : []))}}>
    {% if heading %}
    <h3 {{ heading_attributes.addClass('note__heading') }}>{{- heading -}}</h3>
    {% endif %}
    <div {{ message_attributes.addClass('note__message')}}>{{- message -}}</div>
</div>
