{# @description One figure, set very large and filled with a gradient of the theme's colours, over a line saying what it is. For the single number a page is built round. #} {# @prop value:text | description:"The figure itself, already formatted. Keep it short: it is set very large." #} {# @prop title:text | description:"What the figure is. Use the title slot instead when it contains markup." #} {# @prop lead:text | description:"The supporting sentence under the title" #} {# @prop level:select['1', '2', '3', '4', '5', '6'] | default:"2" | description:"Heading level of the title" #} {# @prop icon:text | description:"An icon above the figure, by the name the project's icon component knows it by. Left out, there is no icon." #} {# @prop speed:number | default:"0" | description:"How quickly the colours slide across the figure, as a multiple. 0 holds them still." #} {# @prop size:select['sm', 'md', 'lg'] | default:"md" | description:"How much vertical room the block takes" #} {# @prop class:text | description:"Extra classes on the outer section. A plain surface colour goes here: bg-base-200." #} {# @slot:figure — Above the figure in place of the icon, for anything that is not one: a logo, a picture. #} {# @slot:actions See how it is measured — Under the copy. Write real anchor markup. #} {% comment %} The fill is this package's gradient text effect, held still unless `speed` is set. The figure is read out with its title: together they are the heading. {% endcomment %}
{% if figure %}
{{ figure }}
{% elif icon %}