{# API #}
{%- set props = props | default([]) -%}
{%- set _emphasis = props.emphasis | default('regular') -%}
{%- set _size = props.size | default('medium') -%}
{%- set _elementType = props.elementType | default('p') -%}

{# Class names #}
{%- set _rootClassName = _spiritClassPrefix ~ 'typography-body-' ~ _size ~ '-' ~ _emphasis -%}

{# Miscellaneous #}
{%- set _styleProps = useStyleProps(props) -%}
{%- set _classNames = [ _rootClassName, _styleProps.className ] -%}
{%- set _allowedAttributes = [ 'translate' ] -%}

<{{ _elementType }} {{ mainProps(props, _allowedAttributes) }} {{ styleProp(_styleProps) }} {{ classProp(_classNames) }}>
    {%- block content %}{% endblock -%}
</{{ _elementType }}>
