{#- chirp-ui: Hero component Full-width section with background for landing pages, headers. Named slot: action (primary CTA, separate from content). Usage: from "chirpui/hero.html" import hero call hero(title="Welcome", subtitle="Build something great.", background="solid")

Some intro text.

{% slot action %}Get started{% end %} end Backgrounds: solid, muted, gradient, mesh, animated-gradient -#} {% def hero(title=none, subtitle=none, background="solid", cls="") %} {% set background = background | validate_variant(("solid","muted","gradient","mesh","animated-gradient"), "solid") %}
{% if title %}

{{ title }}

{% end %} {% if subtitle %}

{{ subtitle }}

{% end %}
{% slot %}
{% slot action %}
{% end %} {#- chirp-ui: Page Hero component Enhanced hero for docs, marketing, app page headers. Data-in: caller passes title, subtitle. Slots receive pre-rendered content. Named slots: eyebrow, actions, metadata, footer. Usage: from "chirpui/hero.html" import page_hero call page_hero(title="API Reference", subtitle="Explore the API.", variant="editorial") slot eyebrow: breadcrumbs; slot actions: share; slot metadata: time; slot footer: badges end Variants: editorial, minimal -#} {% def page_hero(title=none, subtitle=none, variant="editorial", background="solid", cls="") %} {% set variant = variant | validate_variant(("editorial","minimal"), "editorial") %} {% set background = background | validate_variant(("solid","muted","gradient","mesh","animated-gradient"), "solid") %}
{% slot eyebrow %}
{% if title %}

{{ title }}

{% end %} {% if subtitle %}

{{ subtitle }}

{% end %}
{% slot actions %}
{% slot %}
{% end %}