{# @description A dialog drawn on daisyUI's own modal box, inside daisy-cotton's c-modal: a heading row, the body, and a row of actions. A tall body scrolls inside the box while the heading and the actions stay in view. It holds no form of its own, so it works inside one. #}
{# @prop id:text | description:"Dialog id, used to open/close it via showModal()/close()." #}
{# @prop title:text | description:"The heading, and the dialog's accessible name." #}
{# @prop icon:text | description:"Leading icon name for the heading." #}
{# @prop size:select['sm','md','lg','xl','full'] | default:"md" | description:"Dialog width." #}
{# @prop position:select['top','bottom','start','end'] | description:"Dialog placement; unset uses daisyUI's centred placement." #}
{# @prop closable:boolean | description:"Show a close button in the top corner." #}
{# @prop class:text | description:"Extra classes appended to the modal box." #}
{# @slot The dialog's body content. — Drawn between the heading and the actions; it scrolls when it is taller than the box. #}
{# @slot:actions — The heading row, end-aligned. #}
{# @slot:footer — The actions row, start-aligned. #}
{# @slot:footer_end — The actions row, end-aligned. #}
{% comment %}
The title names the dialog through aria-label and is drawn once, here.
Giving c-modal a title too would draw a second heading.
The box is a column that never outgrows the screen: the body takes the
space left and scrolls, so the heading and the actions row stay in view.
{% endcomment %}
{% if title or icon or actions %}
{% if title or icon %}
{% if icon %}{% endif %}
{% if title %}{{ title }}{% endif %}