{# @description A bordered panel with a heading. A tone turns it into the highlighted panel that opens an outcome. #}
{# @prop title:text | description:"The heading." #}
{# @prop heading_id:text | description:"An id for the heading, which then labels the panel." #}
{# @prop size:text | description:"side for the narrow column, flush for a panel whose content runs edge to edge. Empty for the usual panel." #}
{# @prop tone:text | description:"info, error, ready or done for the highlighted panel. Empty for a plain one." #}
{# @prop icon:text | description:"The name of an icon drawn before the heading." #}
{# @prop count:int | description:"A number drawn beside the heading." #}
{# @slot action | description:"A link drawn at the end of the heading's row." #}
{# @slot default | description:"The panel's content." #}
{% if count or action or size == 'flush' %}
{% if icon %} {% endif %}{{ title }}
{% if count %}{{ count }}{% endif %}
{{ action }}
{% elif title %}
{% if icon %} {% endif %}{{ title }}
{% endif %}
{{ slot }}