{# @description The words that open a section or a hero: a short line above, the heading itself, and a sentence under it. Any of the three can be left out. #} {# @prop eyebrow:text | description:"Short line above the heading: a category, a release name" #} {# @prop title:text | description:"The heading. Use the title slot instead when it contains markup." #} {# @prop lead:text | description:"The supporting sentence under the heading" #} {# @prop level:select['1', '2', '3', '4', '5', '6'] | default:"2" | description:"Heading level. It changes what the heading is, never how large it looks." #} {# @prop size:select['md', 'lg', 'xl'] | default:"md" | description:"How large the heading is set. md opens a section, lg and xl open a page." #} {# @prop align:select['start', 'center', 'end', 'none'] | default:"center" | description:"Which edge the words sit against. none sets nothing, so they follow the text alignment around them." #} {# @prop invert:boolean | default:False | description:"Light copy, for a dark background" #} {# @prop class:text | description:"Extra classes on the wrapper" #} {% comment %} `/80` and never lower on the eyebrow and lead: 70% drops to 3.86:1 on winter against the 4.5:1 needed (#21). Under `invert` the copy stays full strength. {% endcomment %} {% if eyebrow or title or lead %}
{% if eyebrow %}

{{ eyebrow }}

{% endif %} {# djlint:off #} {% if title %}{{ title }}{% endif %} {# djlint:on #} {% if lead %}

{{ lead }}

{% endif %}
{% endif %}