{# @description Full-width daisyUI hero banner, with an optional background image and dimming overlay. #} {# @prop bg-image:text | default:"" | description:"Background image URL; the hero already covers and centres it." #} {# @prop title:text | description:"Heading text." #} {# @prop subtitle:text | description:"Short prose under the heading." #} {# @prop actions:text | hidden | description:"Filled by the actions named slot; not passed as a plain attribute." #} {# @prop opacity:number | default:0.5 | description:"How strongly the overlay dims the background image, 0 to 1." #} {# @prop height:text | description:"Minimum height, any CSS length, e.g. \"80vh\"." #} {# @prop class:text | description:"Extra classes on the .hero surface." #} {# @slot:top — Above the heading, e.g. a logo or eyebrow line. #} {# @slot:actions — Below the subtitle, centred as a button row. #} {# @slot:bottom — Below the actions. #} {% comment %} The root spreads no {{ attrs }}: only the declared attributes are read, so a removed one (`parallax`, `speed`) is inert rather than a stray HTML attribute on the DOM that looks like it still does something. {% endcomment %}
{% if bg_image and opacity %}
{% endif %}
{{ top }}

{{ title }}

{% if subtitle %} {{ subtitle }} {% endif %} {% if actions %} {{ actions }} {% endif %} {{ bottom }}