Skip to content
ui8kit

block / marketing

Sitemap Footer

A footer with the brand, groups of links and the copyright; a single row, a sign-up first or a status pill.

Install

npx ui8kit add sitemap-footer

Pulls in: block, box, button, compose, container, footer-card, footer-columns, form, group, input, kit-box, kit-button, kit-form, kit-input, kit-label, kit-text, label, mega-menu, menu-entry, nav-block, pill, stack, text, title, utils

Preview

Northwind

Build pages from blocks that follow your data.

2026 Northwind. All rights reserved.

Code

Point the CLI at this runtime once, then add the item:

npx ui8kit init --yes --framework svelte --dir src --registry-url https://registry.buildy.tw/svelte --strict-cdn
npx ui8kit add sitemap-footer
blocks/sitemap-footer.svelte
<!-- Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT. -->
<!--
  A footer with the brand, a tagline, groups of links and the copyright. Axes: layout (columns: brand above,
  equal columns per group, row: the brand, the group names and the copyright in one row), signup mode (none,
  first: a sign-up above the links), status mode (none, show: a live status pill), density. The live status
  itself is a port contract.
-->
<script lang="ts" module>
  import type { Snippet } from "svelte";
  import type { FooterSignup, FooterStatus } from "./sitemap-footer.types";
  import type { MegaGroup } from "./mega-menu.types";

  export type SitemapFooterProps = {
    label: string;
    brand: string;
    tagline: string;
    copyright: string;
    groups: MegaGroup[];
    signup?: FooterSignup;
    status?: FooterStatus;
    id?: string;
    layout?: "columns" | "row" | "card";
    density?: "default" | "compact";
    landmarkLabel?: string;
  };
</script>

<script lang="ts">
  import Block from "../compose/Block.svelte";
  import Box from "../compose/Box.svelte";
  import Button from "../compose/Button.svelte";
  import Container from "../compose/Container.svelte";
  import Form from "../compose/Form.svelte";
  import Group from "../compose/Group.svelte";
  import Input from "../compose/Input.svelte";
  import Label from "../compose/Label.svelte";
  import Stack from "../compose/Stack.svelte";
  import Text from "../compose/Text.svelte";
  import Title from "../compose/Title.svelte";
  import FooterCard from "../components/footer-card.svelte";
  import FooterColumns from "../components/footer-columns.svelte";
  import MenuEntry from "../components/menu-entry.svelte";
  import NavBlock from "../components/nav-block.svelte";
  import Pill from "../components/pill.svelte";
  import { cn, tpl, uniqLabel } from "../utils";

  let {
    label,
    brand,
    tagline,
    copyright,
    groups,
    signup,
    status,
    id = "footer",
    layout = "columns",
    density = "default",
    landmarkLabel,
  }: SitemapFooterProps = $props();
</script>

{#if ((layout as string) === "card")}
  <FooterCard label={label} brand={brand} groups={groups} landmarkLabel={landmarkLabel} />
{:else}
  <Block
    tag="footer"
    class="mt-12 border-t border-border"
    data-layout={layout}
    aria-label={landmarkLabel}
    data-slot="site-footer"
  >
    <Container
      class={cn(
        "mx-auto w-full max-w-6xl px-4",
        "flex flex-col gap-8",
        (((density as string) === "compact") ? "py-6" : "py-12")
      )}
      data-slot="container"
    >
      {#if (signup?.mode === "first")}
        <Stack gap="4" class="max-w-md" data-slot="signup">
          <Title as={3} size="xl" weight="bold">
            {signup?.title}
          </Title>
          <Form method="dialog" class={cn("w-full max-w-md", (false ? "mx-auto" : ""))} data-slot="email-form">
            <Label for={tpl("{0}-email", id)} class="sr-only">
              {signup?.label}
            </Label>
            <Group gap="2" align="start" class="w-full flex-wrap">
              <Input type="email" name="email" class="min-w-0 flex-1" id={tpl("{0}-email", id)} data-slot="field" />
              <Button variant="default" size="default" type="submit">
                {signup?.submit}
              </Button>
            </Group>
          </Form>
        </Stack>
      {/if}
      {#if ((layout as string) === "columns")}
        <Box class="flex flex-col gap-8 md:flex-row md:items-start md:gap-12" data-slot="footer-top">
          <Stack gap="2" class="md:w-64 md:shrink-0">
            <Text size="xl" weight="bold">
              {brand}
            </Text>
            <Text size="sm" class="text-muted-foreground">
              {tagline}
            </Text>
          </Stack>
          <Box class="min-w-0 flex-1">
            <FooterColumns label={label} groups={groups} landmarkLabel={landmarkLabel} />
          </Box>
        </Box>
      {:else}
        <Group gap="6" align="center" justify="between" class="flex-wrap">
          <Text size="base" weight="bold">
            {brand}
          </Text>
          {#if ((groups?.length ?? 0) > 0)}
            <NavBlock label={(landmarkLabel ? uniqLabel(tpl("{0}, {1}", label, landmarkLabel)) : label)}>
              <Group gap="4" class="flex-wrap">
                {#each groups as g (g.id)}
                  <MenuEntry href={g.href} class="text-sm" testid="group">
                    {g.title}
                  </MenuEntry>
                {/each}
              </Group>
            </NavBlock>
          {/if}
        </Group>
      {/if}
      <Group gap="4" align="center" justify="between" class="flex-wrap border-t border-border pt-6">
        <Text size="sm" class="text-muted-foreground">
          {copyright}
        </Text>
        {#if (status?.mode === "show")}
          <Pill tone="green" icon="circle-check">
            {status?.label}
          </Pill>
        {/if}
      </Group>
    </Container>
  </Block>
{/if}
blocks/sitemap-footer.types.ts
// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.

export type FooterSignup = {
  /** first: the sign-up comes before the links */
  mode?: "none" | "first";
  title?: string;
  /** accessible name of the email field */
  label?: string;
  submit?: string;
};

export type FooterStatus = {
  /** show: the status pill is drawn */
  mode?: "none" | "show";
  /** text of the pill */
  label?: string;
};

Svelte registry item (JSON)

Point the CLI at this runtime once, then add the item:

npx ui8kit init --yes --framework react --dir src --registry-url https://registry.buildy.tw/react --strict-cdn
npx ui8kit add sitemap-footer
blocks/sitemap-footer.tsx
// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
/**
 * A footer with the brand, a tagline, groups of links and the copyright. Axes: layout (columns: brand above,
 * equal columns per group, row: the brand, the group names and the copyright in one row), signup mode (none,
 * first: a sign-up above the links), status mode (none, show: a live status pill), density. The live status
 * itself is a port contract.
 */
import { type ReactNode } from "react";
import { Block, Box, Button, Container, Form, Group, Input, Label, Stack, Text, Title } from "../compose";
import { FooterCard } from "../components/footer-card";
import { FooterColumns } from "../components/footer-columns";
import { MenuEntry } from "../components/menu-entry";
import { NavBlock } from "../components/nav-block";
import { Pill } from "../components/pill";
import { cn, tpl, uniqLabel } from "../utils";
import type { FooterSignup, FooterStatus } from "./sitemap-footer.types";
import type { MegaGroup } from "./mega-menu.types";

export type SitemapFooterProps = {
  label: string;
  brand: string;
  tagline: string;
  copyright: string;
  groups: MegaGroup[];
  signup?: FooterSignup;
  status?: FooterStatus;
  id?: string;
  layout?: "columns" | "row" | "card";
  density?: "default" | "compact";
  landmarkLabel?: string;
};

export function SitemapFooter({
  label,
  brand,
  tagline,
  copyright,
  groups,
  signup,
  status,
  id = "footer",
  layout = "columns",
  density = "default",
  landmarkLabel,
}: SitemapFooterProps) {
  return (
    <>
      {((layout as string) === "card") ? (
        <FooterCard label={label} brand={brand} groups={groups} landmarkLabel={landmarkLabel} />
      ) : (
        <Block
          tag="footer"
          className="mt-12 border-t border-border"
          data-layout={layout}
          aria-label={landmarkLabel}
          data-slot="site-footer"
        >
          <Container
            className={cn(
              "mx-auto w-full max-w-6xl px-4",
              "flex flex-col gap-8",
              (((density as string) === "compact") ? "py-6" : "py-12")
            )}
            data-slot="container"
          >
            {(signup?.mode === "first") ? (
              <Stack gap="4" className="max-w-md" data-slot="signup">
                <Title as={3} size="xl" weight="bold">
                  {signup?.title}
                </Title>
                <Form method="dialog" className={cn("w-full max-w-md", (false ? "mx-auto" : ""))} data-slot="email-form">
                  <Label htmlFor={tpl("{0}-email", id)} className="sr-only">
                    {signup?.label}
                  </Label>
                  <Group gap="2" align="start" className="w-full flex-wrap">
                    <Input type="email" name="email" className="min-w-0 flex-1" id={tpl("{0}-email", id)} data-slot="field" />
                    <Button variant="default" size="default" type="submit">
                      {signup?.submit}
                    </Button>
                  </Group>
                </Form>
              </Stack>
            ) : null}
            {((layout as string) === "columns") ? (
              <Box className="flex flex-col gap-8 md:flex-row md:items-start md:gap-12" data-slot="footer-top">
                <Stack gap="2" className="md:w-64 md:shrink-0">
                  <Text size="xl" weight="bold">
                    {brand}
                  </Text>
                  <Text size="sm" className="text-muted-foreground">
                    {tagline}
                  </Text>
                </Stack>
                <Box className="min-w-0 flex-1">
                  <FooterColumns label={label} groups={groups} landmarkLabel={landmarkLabel} />
                </Box>
              </Box>
            ) : (
              <Group gap="6" align="center" justify="between" className="flex-wrap">
                <Text size="base" weight="bold">
                  {brand}
                </Text>
                {((groups?.length ?? 0) > 0) ? (
                  <NavBlock label={(landmarkLabel ? uniqLabel(tpl("{0}, {1}", label, landmarkLabel)) : label)}>
                    <Group gap="4" className="flex-wrap">
                      {(groups ?? []).map((g) => (
                        <MenuEntry key={g.id} href={g.href} className="text-sm" testid="group">
                          {g.title}
                        </MenuEntry>
                      ))}
                    </Group>
                  </NavBlock>
                ) : null}
              </Group>
            )}
            <Group gap="4" align="center" justify="between" className="flex-wrap border-t border-border pt-6">
              <Text size="sm" className="text-muted-foreground">
                {copyright}
              </Text>
              {(status?.mode === "show") ? (
                <Pill tone="green" icon="circle-check">
                  {status?.label}
                </Pill>
              ) : null}
            </Group>
          </Container>
        </Block>
      )}
    </>
  );
}
blocks/sitemap-footer.types.ts
// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.

export type FooterSignup = {
  /** first: the sign-up comes before the links */
  mode?: "none" | "first";
  title?: string;
  /** accessible name of the email field */
  label?: string;
  submit?: string;
};

export type FooterStatus = {
  /** show: the status pill is drawn */
  mode?: "none" | "show";
  /** text of the pill */
  label?: string;
};

React registry item (JSON)

Point the CLI at this runtime once, then add the item:

npx ui8kit init --yes --framework vue --dir src --registry-url https://registry.buildy.tw/vue --strict-cdn
npx ui8kit add sitemap-footer
blocks/sitemap-footer.types.ts
// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.

export type FooterSignup = {
  /** first: the sign-up comes before the links */
  mode?: "none" | "first";
  title?: string;
  /** accessible name of the email field */
  label?: string;
  submit?: string;
};

export type FooterStatus = {
  /** show: the status pill is drawn */
  mode?: "none" | "show";
  /** text of the pill */
  label?: string;
};
blocks/sitemap-footer.vue
<!-- Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT. -->
<!--
  A footer with the brand, a tagline, groups of links and the copyright. Axes: layout (columns: brand above,
  equal columns per group, row: the brand, the group names and the copyright in one row), signup mode (none,
  first: a sign-up above the links), status mode (none, show: a live status pill), density. The live status
  itself is a port contract.
-->
<script lang="ts">
import type { FooterSignup, FooterStatus } from "./sitemap-footer.types";
import type { MegaGroup } from "./mega-menu.types";

export type SitemapFooterProps = {
  label: string;
  brand: string;
  tagline: string;
  copyright: string;
  groups: MegaGroup[];
  signup?: FooterSignup;
  status?: FooterStatus;
  id?: string;
  layout?: "columns" | "row" | "card";
  density?: "default" | "compact";
  landmarkLabel?: string;
};
</script>

<script setup lang="ts">
import Block from "../compose/Block.vue";
import Box from "../compose/Box.vue";
import Button from "../compose/Button.vue";
import Container from "../compose/Container.vue";
import Form from "../compose/Form.vue";
import Group from "../compose/Group.vue";
import Input from "../compose/Input.vue";
import Label from "../compose/Label.vue";
import Stack from "../compose/Stack.vue";
import Text from "../compose/Text.vue";
import Title from "../compose/Title.vue";
import FooterCard from "../components/footer-card.vue";
import FooterColumns from "../components/footer-columns.vue";
import MenuEntry from "../components/menu-entry.vue";
import NavBlock from "../components/nav-block.vue";
import Pill from "../components/pill.vue";
import { cn, tpl, uniqLabel } from "../utils";

const {
  label,
  brand,
  tagline,
  copyright,
  groups,
  signup,
  status,
  id = "footer",
  layout = "columns",
  density = "default",
  landmarkLabel,
} = defineProps<SitemapFooterProps>();
</script>

<template>
  <FooterCard
    v-if="((layout as string) === 'card')"
    :label="label"
    :brand="brand"
    :groups="groups"
    :landmarkLabel="landmarkLabel"
  />
  <Block v-else
    tag="footer"
    class="mt-12 border-t border-border"
    :data-layout="layout"
    :aria-label="landmarkLabel"
    data-slot="site-footer"
  >
    <Container
      :class="cn(
        'mx-auto w-full max-w-6xl px-4',
        'flex flex-col gap-8',
        (((density as string) === 'compact') ? 'py-6' : 'py-12')
      )"
      data-slot="container"
    >
      <Stack v-if="(signup?.mode === 'first')" gap="4" class="max-w-md" data-slot="signup">
        <Title :as="3" size="xl" weight="bold">
          {{ signup?.title }}
        </Title>
        <Form method="dialog" :class="cn('w-full max-w-md', (false ? 'mx-auto' : ''))" data-slot="email-form">
          <Label :for="tpl('{0}-email', id)" class="sr-only">
            {{ signup?.label }}
          </Label>
          <Group gap="2" align="start" class="w-full flex-wrap">
            <Input type="email" name="email" class="min-w-0 flex-1" :id="tpl('{0}-email', id)" data-slot="field" />
            <Button variant="default" size="default" type="submit">
              {{ signup?.submit }}
            </Button>
          </Group>
        </Form>
      </Stack>
      <Box
        v-if="((layout as string) === 'columns')"
        class="flex flex-col gap-8 md:flex-row md:items-start md:gap-12"
        data-slot="footer-top"
      >
        <Stack gap="2" class="md:w-64 md:shrink-0">
          <Text size="xl" weight="bold">
            {{ brand }}
          </Text>
          <Text size="sm" class="text-muted-foreground">
            {{ tagline }}
          </Text>
        </Stack>
        <Box class="min-w-0 flex-1">
          <FooterColumns :label="label" :groups="groups" :landmarkLabel="landmarkLabel" />
        </Box>
      </Box>
      <Group v-else gap="6" align="center" justify="between" class="flex-wrap">
        <Text size="base" weight="bold">
          {{ brand }}
        </Text>
        <NavBlock
          v-if="((groups?.length ?? 0) > 0)"
          :label="(landmarkLabel ? uniqLabel(tpl('{0}, {1}', label, landmarkLabel)) : label)"
        >
          <Group gap="4" class="flex-wrap">
            <MenuEntry v-for="g in groups" :key="g.id" :href="g.href" class="text-sm" testid="group">
              {{ g.title }}
            </MenuEntry>
          </Group>
        </NavBlock>
      </Group>
      <Group gap="4" align="center" justify="between" class="flex-wrap border-t border-border pt-6">
        <Text size="sm" class="text-muted-foreground">
          {{ copyright }}
        </Text>
        <Pill v-if="(status?.mode === 'show')" tone="green" icon="circle-check">
          {{ status?.label }}
        </Pill>
      </Group>
    </Container>
  </Block>
</template>

Vue registry item (JSON)

Point the CLI at this runtime once, then add the item:

npx ui8kit init --yes --framework solid --dir src --registry-url https://registry.buildy.tw/solid --strict-cdn
npx ui8kit add sitemap-footer
blocks/sitemap-footer.tsx
// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
/**
 * A footer with the brand, a tagline, groups of links and the copyright. Axes: layout (columns: brand above,
 * equal columns per group, row: the brand, the group names and the copyright in one row), signup mode (none,
 * first: a sign-up above the links), status mode (none, show: a live status pill), density. The live status
 * itself is a port contract.
 */
import { For, type JSX } from "solid-js";
import { Block, Box, Button, Container, Form, Group, Input, Label, Stack, Text, Title } from "../compose";
import { FooterCard } from "../components/footer-card";
import { FooterColumns } from "../components/footer-columns";
import { MenuEntry } from "../components/menu-entry";
import { NavBlock } from "../components/nav-block";
import { Pill } from "../components/pill";
import { cn, tpl, uniqLabel } from "../utils";
import type { FooterSignup, FooterStatus } from "./sitemap-footer.types";
import type { MegaGroup } from "./mega-menu.types";

export type SitemapFooterProps = {
  label: string;
  brand: string;
  tagline: string;
  copyright: string;
  groups: MegaGroup[];
  signup?: FooterSignup;
  status?: FooterStatus;
  id?: string;
  layout?: "columns" | "row" | "card";
  density?: "default" | "compact";
  landmarkLabel?: string;
};

export function SitemapFooter({
  label,
  brand,
  tagline,
  copyright,
  groups,
  signup,
  status,
  id = "footer",
  layout = "columns",
  density = "default",
  landmarkLabel,
}: SitemapFooterProps) {
  return (
    <>
      {((layout as string) === "card") ? (
        <FooterCard label={label} brand={brand} groups={groups} landmarkLabel={landmarkLabel} />
      ) : (
        <Block
          tag="footer"
          class="mt-12 border-t border-border"
          data-layout={layout}
          aria-label={landmarkLabel}
          data-slot="site-footer"
        >
          <Container
            class={cn(
              "mx-auto w-full max-w-6xl px-4",
              "flex flex-col gap-8",
              (((density as string) === "compact") ? "py-6" : "py-12")
            )}
            data-slot="container"
          >
            {(signup?.mode === "first") ? (
              <Stack gap="4" class="max-w-md" data-slot="signup">
                <Title as={3} size="xl" weight="bold">
                  {signup?.title}
                </Title>
                <Form method="dialog" class={cn("w-full max-w-md", (false ? "mx-auto" : ""))} data-slot="email-form">
                  <Label for={tpl("{0}-email", id)} class="sr-only">
                    {signup?.label}
                  </Label>
                  <Group gap="2" align="start" class="w-full flex-wrap">
                    <Input type="email" name="email" class="min-w-0 flex-1" id={tpl("{0}-email", id)} data-slot="field" />
                    <Button variant="default" size="default" type="submit">
                      {signup?.submit}
                    </Button>
                  </Group>
                </Form>
              </Stack>
            ) : null}
            {((layout as string) === "columns") ? (
              <Box class="flex flex-col gap-8 md:flex-row md:items-start md:gap-12" data-slot="footer-top">
                <Stack gap="2" class="md:w-64 md:shrink-0">
                  <Text size="xl" weight="bold">
                    {brand}
                  </Text>
                  <Text size="sm" class="text-muted-foreground">
                    {tagline}
                  </Text>
                </Stack>
                <Box class="min-w-0 flex-1">
                  <FooterColumns label={label} groups={groups} landmarkLabel={landmarkLabel} />
                </Box>
              </Box>
            ) : (
              <Group gap="6" align="center" justify="between" class="flex-wrap">
                <Text size="base" weight="bold">
                  {brand}
                </Text>
                {((groups?.length ?? 0) > 0) ? (
                  <NavBlock label={(landmarkLabel ? uniqLabel(tpl("{0}, {1}", label, landmarkLabel)) : label)}>
                    <Group gap="4" class="flex-wrap">
                      <For each={groups ?? []}>{(g) => (
                        <MenuEntry href={g.href} class="text-sm" testid="group">
                          {g.title}
                        </MenuEntry>
                      )}</For>
                    </Group>
                  </NavBlock>
                ) : null}
              </Group>
            )}
            <Group gap="4" align="center" justify="between" class="flex-wrap border-t border-border pt-6">
              <Text size="sm" class="text-muted-foreground">
                {copyright}
              </Text>
              {(status?.mode === "show") ? (
                <Pill tone="green" icon="circle-check">
                  {status?.label}
                </Pill>
              ) : null}
            </Group>
          </Container>
        </Block>
      )}
    </>
  );
}
blocks/sitemap-footer.types.ts
// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.

export type FooterSignup = {
  /** first: the sign-up comes before the links */
  mode?: "none" | "first";
  title?: string;
  /** accessible name of the email field */
  label?: string;
  submit?: string;
};

export type FooterStatus = {
  /** show: the status pill is drawn */
  mode?: "none" | "show";
  /** text of the pill */
  label?: string;
};

Solid registry item (JSON)

Point the CLI at this runtime once, then add the item:

npx ui8kit init --yes --framework templ --dir src --registry-url https://registry.buildy.tw/templ --strict-cdn
npx ui8kit add sitemap-footer
blocks/sitemap-footer.templ
// Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
// Source: packages/compose-gen/specs/organisms/sitemap-footer.json

package blocks

import (
	"github.com/ui8kit/codegen/generated/templ/ui/box"
	"github.com/ui8kit/codegen/generated/templ/ui/button"
	"github.com/ui8kit/codegen/generated/templ/compose"
	"github.com/ui8kit/codegen/generated/templ/ui/form"
	"github.com/ui8kit/codegen/generated/templ/ui/input"
	"github.com/ui8kit/codegen/generated/templ/ui/label"
	"github.com/ui8kit/codegen/generated/templ/ui/text"
	uiutils "github.com/ui8kit/codegen/generated/templ/orgutils"
)

// SitemapFooterProps are the props of SitemapFooter; the values are the JSON shapes of the TypeScript props.
type SitemapFooterProps struct {
	Label any `json:"label"`
	Brand any `json:"brand"`
	Tagline any `json:"tagline"`
	Copyright any `json:"copyright"`
	Groups any `json:"groups"`
	Signup any `json:"signup"`
	Status any `json:"status"`
	Id any `json:"id"`
	Layout any `json:"layout"`
	Density any `json:"density"`
	LandmarkLabel any `json:"landmarkLabel"`
}

// A footer with the brand, a tagline, groups of links and the copyright. Axes: layout (columns: brand above, equal columns per group, row: the brand, the group names and the copyright in one row), signup mode (none, first: a sign-up above the links), status mode (none, show: a live status pill), density. The live status itself is a port contract.
templ SitemapFooter(p SitemapFooterProps) {
	{{ vLabel := p.Label }}
	{{ vBrand := p.Brand }}
	{{ vTagline := p.Tagline }}
	{{ vCopyright := p.Copyright }}
	{{ vGroups := p.Groups }}
	{{ vSignup := p.Signup }}
	{{ vStatus := p.Status }}
	{{ vId := uiutils.Def(p.Id, "footer") }}
	{{ vLayout := uiutils.Def(p.Layout, "columns") }}
	{{ vDensity := uiutils.Def(p.Density, "default") }}
	{{ vLandmarkLabel := p.LandmarkLabel }}
	if uiutils.Eq(vLayout, "card") {
		@FooterCard(FooterCardProps{Label: vLabel, Brand: vBrand, Groups: vGroups, LandmarkLabel: vLandmarkLabel})
	} else {
		@compose.Block(compose.BlockProps{BoxProps: box.BoxProps{Tag: "footer", Class: "mt-12 border-t border-border", Attrs: uiutils.Attrs("data-layout", vLayout, "aria-label", vLandmarkLabel, "data-slot", "site-footer")}}) {
			@compose.Container(compose.ContainerProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("mx-auto w-full max-w-6xl px-4", "flex flex-col gap-8", uiutils.Cond(uiutils.T(uiutils.Eq(vDensity, "compact")), "py-6", "py-12"))), Attrs: uiutils.Attrs("data-slot", "container")}}) {
				if uiutils.Eq(uiutils.Get(vSignup, "mode"), "first") {
					@compose.Stack(compose.StackProps{Gap: "4", BoxProps: box.BoxProps{Class: "max-w-md", Attrs: uiutils.Attrs("data-slot", "signup")}}) {
						@compose.Title(compose.TitleProps{As: "3", Size: "xl", Weight: "bold", TextProps: text.TextProps{}}) {
							{ uiutils.Text(uiutils.Get(vSignup, "title")) }
						}
						@compose.Form(compose.FormProps{FormProps: form.FormProps{Method: "dialog", Class: uiutils.S(uiutils.Cnv("w-full max-w-md", uiutils.Cond(uiutils.T(false), "mx-auto", ""))), Attrs: uiutils.Attrs("data-slot", "email-form")}}) {
							@compose.Label(compose.LabelProps{LabelProps: label.LabelProps{For: uiutils.S(uiutils.Tpl("{0}-email", vId)), Class: "sr-only"}}) {
								{ uiutils.Text(uiutils.Get(vSignup, "label")) }
							}
							@compose.Group(compose.GroupProps{Gap: "2", Align: "start", BoxProps: box.BoxProps{Class: "w-full flex-wrap"}}) {
								@compose.Input(compose.InputProps{InputProps: input.InputProps{Type: "email", Name: "email", Class: "min-w-0 flex-1", Attrs: uiutils.Attrs("id", uiutils.Tpl("{0}-email", vId), "data-slot", "field")}})
								@compose.Button(compose.ButtonProps{Variant: "default", Size: "default", ButtonProps: button.ButtonProps{Type: "submit"}}) {
									{ uiutils.Text(uiutils.Get(vSignup, "submit")) }
								}
							}
						}
					}
				}
				if uiutils.Eq(vLayout, "columns") {
					@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: "flex flex-col gap-8 md:flex-row md:items-start md:gap-12", Attrs: uiutils.Attrs("data-slot", "footer-top")}}) {
						@compose.Stack(compose.StackProps{Gap: "2", BoxProps: box.BoxProps{Class: "md:w-64 md:shrink-0"}}) {
							@compose.Text(compose.TextProps{Size: "xl", Weight: "bold", TextProps: text.TextProps{}}) {
								{ uiutils.Text(vBrand) }
							}
							@compose.Text(compose.TextProps{Size: "sm", TextProps: text.TextProps{Class: "text-muted-foreground"}}) {
								{ uiutils.Text(vTagline) }
							}
						}
						@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: "min-w-0 flex-1"}}) {
							@FooterColumns(FooterColumnsProps{Label: vLabel, Groups: vGroups, LandmarkLabel: vLandmarkLabel})
						}
					}
				} else {
					@compose.Group(compose.GroupProps{Gap: "6", Align: "center", Justify: "between", BoxProps: box.BoxProps{Class: "flex-wrap"}}) {
						@compose.Text(compose.TextProps{Size: "base", Weight: "bold", TextProps: text.TextProps{}}) {
							{ uiutils.Text(vBrand) }
						}
						if uiutils.Gt(uiutils.Len(vGroups), float64(0)) {
							@NavBlock(NavBlockProps{Label: uiutils.Cond(uiutils.T(vLandmarkLabel), uiutils.Uniq(uiutils.Tpl("{0}, {1}", vLabel, vLandmarkLabel)), vLabel)}) {
								@compose.Group(compose.GroupProps{Gap: "4", BoxProps: box.BoxProps{Class: "flex-wrap"}}) {
									for _, vG := range uiutils.L(vGroups) {
										@MenuEntry(MenuEntryProps{Href: uiutils.Get(vG, "href"), Class: uiutils.Cnv("text-sm"), Testid: "group"}) {
											{ uiutils.Text(uiutils.Get(vG, "title")) }
										}
									}
								}
							}
						}
					}
				}
				@compose.Group(compose.GroupProps{Gap: "4", Align: "center", Justify: "between", BoxProps: box.BoxProps{Class: "flex-wrap border-t border-border pt-6"}}) {
					@compose.Text(compose.TextProps{Size: "sm", TextProps: text.TextProps{Class: "text-muted-foreground"}}) {
						{ uiutils.Text(vCopyright) }
					}
					if uiutils.Eq(uiutils.Get(vStatus, "mode"), "show") {
						@Pill(PillProps{Tone: "green", Icon: "circle-check"}) {
							{ uiutils.Text(uiutils.Get(vStatus, "label")) }
						}
					}
				}
			}
		}
	}
}

templ registry item (JSON)

Point the CLI at this runtime once, then add the item:

npx ui8kit init --yes --framework twig --dir src --registry-url https://registry.buildy.tw/twig --strict-cdn
npx ui8kit add sitemap-footer
blocks/sitemap-footer.html.twig
{#- Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
    Source: packages/compose-gen/specs/organisms/sitemap-footer.json
    A footer with the brand, a tagline, groups of links and the copyright. Axes: layout (columns: brand above, equal columns per group, row: the brand, the group names and the copyright in one row), signup mode (none, first: a sign-up above the links), status mode (none, show: a live status pill), density. The live status itself is a port contract.
    Props (p): label, brand, tagline, copyright, groups, signup, status, id, layout, density, landmarkLabel. -#}
{%- set v_label = (p.label ?? null) -%}
{%- set v_brand = (p.brand ?? null) -%}
{%- set v_tagline = (p.tagline ?? null) -%}
{%- set v_copyright = (p.copyright ?? null) -%}
{%- set v_groups = (p.groups ?? null) -%}
{%- set v_signup = (p.signup ?? null) -%}
{%- set v_status = (p.status ?? null) -%}
{%- set v_id = (p.id ?? 'footer') -%}
{%- set v_layout = (p.layout ?? 'columns') -%}
{%- set v_density = (p.density ?? 'default') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- if og_t(og_eq(v_layout, 'card')) %}
  {{ include('blocks/footer-card.html.twig', {'p': {'label': v_label, 'brand': v_brand, 'groups': v_groups, 'landmarkLabel': v_landmarkLabel}}, with_context = false) }}
{%- else %}
  {%- set c_21 -%}
    {%- set c_20 -%}
      {%- if og_t(og_eq(og_get(v_signup, ['mode']), 'first')) %}
        {%- set c_6 -%}
          {%- set c_1 -%}
            {{ og_text(og_get(v_signup, ['title'])) }}
          {%- endset -%}
          {{ include('compose/Title.html.twig', {'as': 3, 'size': 'xl', 'weight': 'bold', 'children': c_1}, with_context = false) }}
          {%- set c_5 -%}
            {%- set c_2 -%}
              {{ og_text(og_get(v_signup, ['label'])) }}
            {%- endset -%}
            {{ include('compose/Label.html.twig', {'htmlFor': og_s(og_tpl('{0}-email', [v_id])), 'class': 'sr-only', 'children': c_2}, with_context = false) }}
            {%- set c_4 -%}
              {{ include('compose/Input.html.twig', {'type': 'email', 'name': 'email', 'class': 'min-w-0 flex-1', 'attrs': og_attrs(['id', og_tpl('{0}-email', [v_id]), 'data-slot', 'field'])}, with_context = false) }}
              {%- set c_3 -%}
                {{ og_text(og_get(v_signup, ['submit'])) }}
              {%- endset -%}
              {{ include('compose/Button.html.twig', {'variant': 'default', 'size': 'default', 'type': 'submit', 'children': c_3}, with_context = false) }}
            {%- endset -%}
            {{ include('compose/Group.html.twig', {'gap': '2', 'align': 'start', 'class': 'w-full flex-wrap', 'children': c_4}, with_context = false) }}
          {%- endset -%}
          {{ include('compose/Form.html.twig', {'method': 'dialog', 'class': og_s(og_cnv(['w-full max-w-md', (og_t(false) ? 'mx-auto' : '')])), 'attrs': og_attrs(['data-slot', 'email-form']), 'children': c_5}, with_context = false) }}
        {%- endset -%}
        {{ include('compose/Stack.html.twig', {'gap': '4', 'class': 'max-w-md', 'attrs': og_attrs(['data-slot', 'signup']), 'children': c_6}, with_context = false) }}
      {%- endif %}
      {%- if og_t(og_eq(v_layout, 'columns')) %}
        {%- set c_11 -%}
          {%- set c_9 -%}
            {%- set c_7 -%}
              {{ og_text(v_brand) }}
            {%- endset -%}
            {{ include('compose/Text.html.twig', {'size': 'xl', 'weight': 'bold', 'children': c_7}, with_context = false) }}
            {%- set c_8 -%}
              {{ og_text(v_tagline) }}
            {%- endset -%}
            {{ include('compose/Text.html.twig', {'size': 'sm', 'class': 'text-muted-foreground', 'children': c_8}, with_context = false) }}
          {%- endset -%}
          {{ include('compose/Stack.html.twig', {'gap': '2', 'class': 'md:w-64 md:shrink-0', 'children': c_9}, with_context = false) }}
          {%- set c_10 -%}
            {{ include('blocks/footer-columns.html.twig', {'p': {'label': v_label, 'groups': v_groups, 'landmarkLabel': v_landmarkLabel}}, with_context = false) }}
          {%- endset -%}
          {{ include('compose/Box.html.twig', {'class': 'min-w-0 flex-1', 'children': c_10}, with_context = false) }}
        {%- endset -%}
        {{ include('compose/Box.html.twig', {'class': 'flex flex-col gap-8 md:flex-row md:items-start md:gap-12', 'attrs': og_attrs(['data-slot', 'footer-top']), 'children': c_11}, with_context = false) }}
      {%- else %}
        {%- set c_16 -%}
          {%- set c_12 -%}
            {{ og_text(v_brand) }}
          {%- endset -%}
          {{ include('compose/Text.html.twig', {'size': 'base', 'weight': 'bold', 'children': c_12}, with_context = false) }}
          {%- if og_t(og_gt(og_len(v_groups), 0)) %}
            {%- set c_15 -%}
              {%- set c_14 -%}
                {%- for v_g in og_l(v_groups) %}
                  {%- set c_13 -%}
                    {{ og_text(og_get(v_g, ['title'])) }}
                  {%- endset -%}
                  {{ include('blocks/menu-entry.html.twig', {'p': {'href': og_get(v_g, ['href']), 'className': og_cnv(['text-sm']), 'testid': 'group'}, 'children': og_markup(c_13)}, with_context = false) }}
                {%- endfor %}
              {%- endset -%}
              {{ include('compose/Group.html.twig', {'gap': '4', 'class': 'flex-wrap', 'children': c_14}, with_context = false) }}
            {%- endset -%}
            {{ include('blocks/nav-block.html.twig', {'p': {'label': (og_t(v_landmarkLabel) ? og_uniq(og_tpl('{0}, {1}', [v_label, v_landmarkLabel])) : v_label)}, 'children': og_markup(c_15)}, with_context = false) }}
          {%- endif %}
        {%- endset -%}
        {{ include('compose/Group.html.twig', {'gap': '6', 'align': 'center', 'justify': 'between', 'class': 'flex-wrap', 'children': c_16}, with_context = false) }}
      {%- endif %}
      {%- set c_19 -%}
        {%- set c_17 -%}
          {{ og_text(v_copyright) }}
        {%- endset -%}
        {{ include('compose/Text.html.twig', {'size': 'sm', 'class': 'text-muted-foreground', 'children': c_17}, with_context = false) }}
        {%- if og_t(og_eq(og_get(v_status, ['mode']), 'show')) %}
          {%- set c_18 -%}
            {{ og_text(og_get(v_status, ['label'])) }}
          {%- endset -%}
          {{ include('blocks/pill.html.twig', {'p': {'tone': 'green', 'icon': 'circle-check'}, 'children': og_markup(c_18)}, with_context = false) }}
        {%- endif %}
      {%- endset -%}
      {{ include('compose/Group.html.twig', {'gap': '4', 'align': 'center', 'justify': 'between', 'class': 'flex-wrap border-t border-border pt-6', 'children': c_19}, with_context = false) }}
    {%- endset -%}
    {{ include('compose/Container.html.twig', {'class': og_s(og_cnv(['mx-auto w-full max-w-6xl px-4', 'flex flex-col gap-8', (og_t(og_eq(v_density, 'compact')) ? 'py-6' : 'py-12')])), 'attrs': og_attrs(['data-slot', 'container']), 'children': c_20}, with_context = false) }}
  {%- endset -%}
  {{ include('compose/Block.html.twig', {'tag': 'footer', 'class': 'mt-12 border-t border-border', 'attrs': og_attrs(['data-layout', v_layout, 'aria-label', v_landmarkLabel, 'data-slot', 'site-footer']), 'children': c_21}, with_context = false) }}
{%- endif %}

Twig registry item (JSON)

Point the CLI at this runtime once, then add the item:

npx ui8kit init --yes --framework latte --dir src --registry-url https://registry.buildy.tw/latte --strict-cdn
npx ui8kit add sitemap-footer
blocks/sitemap-footer.latte
{* Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
    Source: packages/compose-gen/specs/organisms/sitemap-footer.json
    A footer with the brand, a tagline, groups of links and the copyright. Axes: layout (columns: brand above, equal columns per group, row: the brand, the group names and the copyright in one row), signup mode (none, first: a sign-up above the links), status mode (none, show: a live status pill), density. The live status itself is a port contract.
    Props (p): label, brand, tagline, copyright, groups, signup, status, id, layout, density, landmarkLabel. *}
{var $v_label = ($p['label'] ?? null)}
{var $v_brand = ($p['brand'] ?? null)}
{var $v_tagline = ($p['tagline'] ?? null)}
{var $v_copyright = ($p['copyright'] ?? null)}
{var $v_groups = ($p['groups'] ?? null)}
{var $v_signup = ($p['signup'] ?? null)}
{var $v_status = ($p['status'] ?? null)}
{var $v_id = ($p['id'] ?? 'footer')}
{var $v_layout = ($p['layout'] ?? 'columns')}
{var $v_density = ($p['density'] ?? 'default')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{if og_t(og_eq($v_layout, 'card'))}
  {=og_include('blocks/footer-card.latte', ['p' => ['label' => $v_label, 'brand' => $v_brand, 'groups' => $v_groups, 'landmarkLabel' => $v_landmarkLabel]])|noescape}
{else}
  {capture $c_21}
    {capture $c_20}
      {if og_t(og_eq(og_get($v_signup, ['mode']), 'first'))}
        {capture $c_6}
          {capture $c_1}
            {=og_text(og_get($v_signup, ['title']))}
          {/capture}
          {=og_include('compose/Title.latte', ['as' => 3, 'size' => 'xl', 'weight' => 'bold', 'children' => (string) $c_1])|noescape}
          {capture $c_5}
            {capture $c_2}
              {=og_text(og_get($v_signup, ['label']))}
            {/capture}
            {=og_include('compose/Label.latte', ['htmlFor' => og_s(og_tpl('{0}-email', [$v_id])), 'class' => 'sr-only', 'children' => (string) $c_2])|noescape}
            {capture $c_4}
              {=og_include('compose/Input.latte', ['type' => 'email', 'name' => 'email', 'class' => 'min-w-0 flex-1', 'attrs' => og_attrs(['id', og_tpl('{0}-email', [$v_id]), 'data-slot', 'field'])])|noescape}
              {capture $c_3}
                {=og_text(og_get($v_signup, ['submit']))}
              {/capture}
              {=og_include('compose/Button.latte', ['variant' => 'default', 'size' => 'default', 'type' => 'submit', 'children' => (string) $c_3])|noescape}
            {/capture}
            {=og_include('compose/Group.latte', ['gap' => '2', 'align' => 'start', 'class' => 'w-full flex-wrap', 'children' => (string) $c_4])|noescape}
          {/capture}
          {=og_include('compose/Form.latte', ['method' => 'dialog', 'class' => og_s(og_cnv(['w-full max-w-md', (og_t(false) ? 'mx-auto' : '')])), 'attrs' => og_attrs(['data-slot', 'email-form']), 'children' => (string) $c_5])|noescape}
        {/capture}
        {=og_include('compose/Stack.latte', ['gap' => '4', 'class' => 'max-w-md', 'attrs' => og_attrs(['data-slot', 'signup']), 'children' => (string) $c_6])|noescape}
      {/if}
      {if og_t(og_eq($v_layout, 'columns'))}
        {capture $c_11}
          {capture $c_9}
            {capture $c_7}
              {=og_text($v_brand)}
            {/capture}
            {=og_include('compose/Text.latte', ['size' => 'xl', 'weight' => 'bold', 'children' => (string) $c_7])|noescape}
            {capture $c_8}
              {=og_text($v_tagline)}
            {/capture}
            {=og_include('compose/Text.latte', ['size' => 'sm', 'class' => 'text-muted-foreground', 'children' => (string) $c_8])|noescape}
          {/capture}
          {=og_include('compose/Stack.latte', ['gap' => '2', 'class' => 'md:w-64 md:shrink-0', 'children' => (string) $c_9])|noescape}
          {capture $c_10}
            {=og_include('blocks/footer-columns.latte', ['p' => ['label' => $v_label, 'groups' => $v_groups, 'landmarkLabel' => $v_landmarkLabel]])|noescape}
          {/capture}
          {=og_include('compose/Box.latte', ['class' => 'min-w-0 flex-1', 'children' => (string) $c_10])|noescape}
        {/capture}
        {=og_include('compose/Box.latte', ['class' => 'flex flex-col gap-8 md:flex-row md:items-start md:gap-12', 'attrs' => og_attrs(['data-slot', 'footer-top']), 'children' => (string) $c_11])|noescape}
      {else}
        {capture $c_16}
          {capture $c_12}
            {=og_text($v_brand)}
          {/capture}
          {=og_include('compose/Text.latte', ['size' => 'base', 'weight' => 'bold', 'children' => (string) $c_12])|noescape}
          {if og_t(og_gt(og_len($v_groups), 0))}
            {capture $c_15}
              {capture $c_14}
                {foreach og_l($v_groups) as $v_g}
                  {capture $c_13}
                    {=og_text(og_get($v_g, ['title']))}
                  {/capture}
                  {=og_include('blocks/menu-entry.latte', ['p' => ['href' => og_get($v_g, ['href']), 'className' => og_cnv(['text-sm']), 'testid' => 'group'], 'children' => og_markup($c_13)])|noescape}
                {/foreach}
              {/capture}
              {=og_include('compose/Group.latte', ['gap' => '4', 'class' => 'flex-wrap', 'children' => (string) $c_14])|noescape}
            {/capture}
            {=og_include('blocks/nav-block.latte', ['p' => ['label' => (og_t($v_landmarkLabel) ? og_uniq(og_tpl('{0}, {1}', [$v_label, $v_landmarkLabel])) : $v_label)], 'children' => og_markup($c_15)])|noescape}
          {/if}
        {/capture}
        {=og_include('compose/Group.latte', ['gap' => '6', 'align' => 'center', 'justify' => 'between', 'class' => 'flex-wrap', 'children' => (string) $c_16])|noescape}
      {/if}
      {capture $c_19}
        {capture $c_17}
          {=og_text($v_copyright)}
        {/capture}
        {=og_include('compose/Text.latte', ['size' => 'sm', 'class' => 'text-muted-foreground', 'children' => (string) $c_17])|noescape}
        {if og_t(og_eq(og_get($v_status, ['mode']), 'show'))}
          {capture $c_18}
            {=og_text(og_get($v_status, ['label']))}
          {/capture}
          {=og_include('blocks/pill.latte', ['p' => ['tone' => 'green', 'icon' => 'circle-check'], 'children' => og_markup($c_18)])|noescape}
        {/if}
      {/capture}
      {=og_include('compose/Group.latte', ['gap' => '4', 'align' => 'center', 'justify' => 'between', 'class' => 'flex-wrap border-t border-border pt-6', 'children' => (string) $c_19])|noescape}
    {/capture}
    {=og_include('compose/Container.latte', ['class' => og_s(og_cnv(['mx-auto w-full max-w-6xl px-4', 'flex flex-col gap-8', (og_t(og_eq($v_density, 'compact')) ? 'py-6' : 'py-12')])), 'attrs' => og_attrs(['data-slot', 'container']), 'children' => (string) $c_20])|noescape}
  {/capture}
  {=og_include('compose/Block.latte', ['tag' => 'footer', 'class' => 'mt-12 border-t border-border', 'attrs' => og_attrs(['data-layout', $v_layout, 'aria-label', $v_landmarkLabel, 'data-slot', 'site-footer']), 'children' => (string) $c_21])|noescape}
{/if}

Latte registry item (JSON)

Point the CLI at this runtime once, then add the item:

npx ui8kit init --yes --framework jinja2 --dir src --registry-url https://registry.buildy.tw/jinja2 --strict-cdn
npx ui8kit add sitemap-footer
blocks/sitemap-footer.html.j2
{#- Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
    Source: packages/compose-gen/specs/organisms/sitemap-footer.json
    A footer with the brand, a tagline, groups of links and the copyright. Axes: layout (columns: brand above, equal columns per group, row: the brand, the group names and the copyright in one row), signup mode (none, first: a sign-up above the links), status mode (none, show: a live status pill), density. The live status itself is a port contract.
    Props (p): label, brand, tagline, copyright, groups, signup, status, id, layout, density, landmarkLabel. -#}
{%- set v_label = og_def(p['label'], none) -%}
{%- set v_brand = og_def(p['brand'], none) -%}
{%- set v_tagline = og_def(p['tagline'], none) -%}
{%- set v_copyright = og_def(p['copyright'], none) -%}
{%- set v_groups = og_def(p['groups'], none) -%}
{%- set v_signup = og_def(p['signup'], none) -%}
{%- set v_status = og_def(p['status'], none) -%}
{%- set v_id = og_def(p['id'], 'footer') -%}
{%- set v_layout = og_def(p['layout'], 'columns') -%}
{%- set v_density = og_def(p['density'], 'default') -%}
{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}
{%- if og_t(og_eq(v_layout, 'card')) %}
  {{ og_include('blocks/footer-card.html.j2', {'p': {'label': v_label, 'brand': v_brand, 'groups': v_groups, 'landmarkLabel': v_landmarkLabel}}) }}
{%- else %}
  {%- set c_21 -%}
    {%- set c_20 -%}
      {%- if og_t(og_eq(og_get(v_signup, ['mode']), 'first')) %}
        {%- set c_6 -%}
          {%- set c_1 -%}
            {{ og_text(og_get(v_signup, ['title'])) }}
          {%- endset -%}
          {{ og_include('compose/title.html.j2', {'p': {'As': 3, 'Size': 'xl', 'Weight': 'bold'}, 'children': c_1}) }}
          {%- set c_5 -%}
            {%- set c_2 -%}
              {{ og_text(og_get(v_signup, ['label'])) }}
            {%- endset -%}
            {{ og_include('compose/label.html.j2', {'p': {'For': og_s(og_tpl('{0}-email', [v_id])), 'Class': 'sr-only'}, 'children': c_2}) }}
            {%- set c_4 -%}
              {{ og_include('compose/input.html.j2', {'p': {'Type': 'email', 'Name': 'email', 'Class': 'min-w-0 flex-1', 'Attrs': og_attrs(['id', og_tpl('{0}-email', [v_id]), 'data-slot', 'field'])}}) }}
              {%- set c_3 -%}
                {{ og_text(og_get(v_signup, ['submit'])) }}
              {%- endset -%}
              {{ og_include('compose/button.html.j2', {'p': {'Variant': 'default', 'Size': 'default', 'Type': 'submit'}, 'children': c_3}) }}
            {%- endset -%}
            {{ og_include('compose/group.html.j2', {'p': {'Gap': '2', 'Align': 'start', 'Class': 'w-full flex-wrap'}, 'children': c_4}) }}
          {%- endset -%}
          {{ og_include('compose/form.html.j2', {'p': {'Method': 'dialog', 'Class': og_s(og_cnv(['w-full max-w-md', ('mx-auto' if og_t(false) else '')])), 'Attrs': og_attrs(['data-slot', 'email-form'])}, 'children': c_5}) }}
        {%- endset -%}
        {{ og_include('compose/stack.html.j2', {'p': {'Gap': '4', 'Class': 'max-w-md', 'Attrs': og_attrs(['data-slot', 'signup'])}, 'children': c_6}) }}
      {%- endif %}
      {%- if og_t(og_eq(v_layout, 'columns')) %}
        {%- set c_11 -%}
          {%- set c_9 -%}
            {%- set c_7 -%}
              {{ og_text(v_brand) }}
            {%- endset -%}
            {{ og_include('compose/text.html.j2', {'p': {'Size': 'xl', 'Weight': 'bold'}, 'children': c_7}) }}
            {%- set c_8 -%}
              {{ og_text(v_tagline) }}
            {%- endset -%}
            {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_8}) }}
          {%- endset -%}
          {{ og_include('compose/stack.html.j2', {'p': {'Gap': '2', 'Class': 'md:w-64 md:shrink-0'}, 'children': c_9}) }}
          {%- set c_10 -%}
            {{ og_include('blocks/footer-columns.html.j2', {'p': {'label': v_label, 'groups': v_groups, 'landmarkLabel': v_landmarkLabel}}) }}
          {%- endset -%}
          {{ og_include('compose/box.html.j2', {'p': {'Class': 'min-w-0 flex-1'}, 'children': c_10}) }}
        {%- endset -%}
        {{ og_include('compose/box.html.j2', {'p': {'Class': 'flex flex-col gap-8 md:flex-row md:items-start md:gap-12', 'Attrs': og_attrs(['data-slot', 'footer-top'])}, 'children': c_11}) }}
      {%- else %}
        {%- set c_16 -%}
          {%- set c_12 -%}
            {{ og_text(v_brand) }}
          {%- endset -%}
          {{ og_include('compose/text.html.j2', {'p': {'Size': 'base', 'Weight': 'bold'}, 'children': c_12}) }}
          {%- if og_t(og_gt(og_len(v_groups), 0)) %}
            {%- set c_15 -%}
              {%- set c_14 -%}
                {%- for v_g in og_l(v_groups) %}
                  {%- set c_13 -%}
                    {{ og_text(og_get(v_g, ['title'])) }}
                  {%- endset -%}
                  {{ og_include('blocks/menu-entry.html.j2', {'p': {'href': og_get(v_g, ['href']), 'className': og_cnv(['text-sm']), 'testid': 'group'}, 'children': og_markup(c_13)}) }}
                {%- endfor %}
              {%- endset -%}
              {{ og_include('compose/group.html.j2', {'p': {'Gap': '4', 'Class': 'flex-wrap'}, 'children': c_14}) }}
            {%- endset -%}
            {{ og_include('blocks/nav-block.html.j2', {'p': {'label': (og_uniq(og_tpl('{0}, {1}', [v_label, v_landmarkLabel])) if og_t(v_landmarkLabel) else v_label)}, 'children': og_markup(c_15)}) }}
          {%- endif %}
        {%- endset -%}
        {{ og_include('compose/group.html.j2', {'p': {'Gap': '6', 'Align': 'center', 'Justify': 'between', 'Class': 'flex-wrap'}, 'children': c_16}) }}
      {%- endif %}
      {%- set c_19 -%}
        {%- set c_17 -%}
          {{ og_text(v_copyright) }}
        {%- endset -%}
        {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_17}) }}
        {%- if og_t(og_eq(og_get(v_status, ['mode']), 'show')) %}
          {%- set c_18 -%}
            {{ og_text(og_get(v_status, ['label'])) }}
          {%- endset -%}
          {{ og_include('blocks/pill.html.j2', {'p': {'tone': 'green', 'icon': 'circle-check'}, 'children': og_markup(c_18)}) }}
        {%- endif %}
      {%- endset -%}
      {{ og_include('compose/group.html.j2', {'p': {'Gap': '4', 'Align': 'center', 'Justify': 'between', 'Class': 'flex-wrap border-t border-border pt-6'}, 'children': c_19}) }}
    {%- endset -%}
    {{ og_include('compose/container.html.j2', {'p': {'Class': og_s(og_cnv(['mx-auto w-full max-w-6xl px-4', 'flex flex-col gap-8', ('py-6' if og_t(og_eq(v_density, 'compact')) else 'py-12')])), 'Attrs': og_attrs(['data-slot', 'container'])}, 'children': c_20}) }}
  {%- endset -%}
  {{ og_include('compose/block.html.j2', {'p': {'Tag': 'footer', 'Class': 'mt-12 border-t border-border', 'Attrs': og_attrs(['data-layout', v_layout, 'aria-label', v_landmarkLabel, 'data-slot', 'site-footer'])}, 'children': c_21}) }}
{%- endif %}

Jinja2 registry item (JSON)

Props

Names and types come from the xgen specs of the source. Standard HTML attributes (id, role, tabIndex, aria-*) pass through to the root element; the class prop is className in React.

A footer with the brand, a tagline, groups of links and the copyright. Axes: layout (columns: brand above, equal columns per group, row: the brand, the group names and the copyright in one row), signup mode (none, first: a sign-up above the links), status mode (none, show: a live status pill), density. The live status itself is a port contract.

Props of SitemapFooter
PropTypeDefault Description
label (required)string-accessible name of the link groups
brand (required)string-
tagline (required)string-
copyright (required)string-
groups (required)MegaGroup[]-
signup FooterSignup-a newsletter sign-up above the links
status FooterStatus-a live status pill beside the copyright
id string"footer"
layout "columns" | "row" | "card""columns"card: the groups in one rounded card (FooterCard)
density "default" | "compact""default"
landmarkLabel string-accessible name of the landmark of this component when the page shows it more than once (a variant); replaces the heading name of the root landmark, follows the name of a nested one