{# API #}
{%- set props = props | default([]) -%}
{%- set _rootClass = props.rootClass -%}

{# Class names #}
{%- set _rootClassName = _spiritClassPrefix ~ _rootClass -%}

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

<button
    {{ mainProps(props) }}
    {{ styleProp(_styleProps) }}
    {{ classProp(_classNames) }}
    type="button"
>
    {% block content %}{% endblock %}
</button>
