{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The card layout of SitemapFooter: the brand mark and word, then the link groups in one row, in a rounded card.",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n/** The card layout of SitemapFooter: the brand mark and word, then the link groups in one row, in a rounded card. */\nimport { For, type JSX } from \"solid-js\";\nimport { Block, Box, Container, Group, Inline, List, ListItem, Stack, Text } from \"../compose\";\nimport { LucideIcon } from \"../icons/LucideIcon\";\nimport { MenuEntry } from \"../components/menu-entry\";\nimport { NavBlock } from \"../components/nav-block\";\nimport { defaults } from \"../presets/defaults\";\nimport { cn, tpl, uniqLabel } from \"../utils\";\nimport type { MegaGroup } from \"../blocks/mega-menu.types\";\n\nexport type FooterCardProps = {\n  label: string;\n  brand: string;\n  groups: MegaGroup[];\n  landmarkLabel?: string;\n};\n\nexport function FooterCard({ label, brand, groups, landmarkLabel }: FooterCardProps) {\n  return (\n    <Block tag=\"footer\" class=\"py-8\" data-layout=\"card\" aria-label={landmarkLabel} data-slot=\"site-footer\">\n      <Container class={cn(cn(\"mx-auto w-full px-4\", defaults.section.landing), \"px-0\")} data-slot=\"container\">\n        <Box\n          class={cn(\"flex w-full flex-row items-start overflow-hidden bg-muted p-10\", defaults.footer.card)}\n          data-slot=\"footer-card\"\n        >\n          <Group gap=\"4\" align=\"center\" class={cn(\"h-8 shrink-0\", defaults.footer.brand)} data-slot=\"footer-brand\">\n            <Inline class=\"flex size-8 items-center justify-center rounded bg-foreground text-background\">\n              <LucideIcon name=\"hexagon\" size={16} />\n            </Inline>\n            <Text size=\"base\" weight=\"bold\">\n              {brand}\n            </Text>\n          </Group>\n          {((groups?.length ?? 0) > 0) ? (\n            <NavBlock\n              label={(landmarkLabel ? uniqLabel(tpl(\"{0}, {1}\", label, landmarkLabel)) : label)}\n              class=\"min-w-0 flex-1\"\n            >\n              <Group\n                gap=\"0\"\n                align=\"start\"\n                class={cn(\"flex w-full flex-nowrap justify-between\", defaults.footer.groups)}\n                data-slot=\"footer-groups\"\n              >\n                <For each={groups ?? []}>{(g) => (\n                  <Stack gap=\"4\" data-slot=\"group\">\n                    <Text size=\"xs\" weight=\"semibold\" class=\"leading-5\">\n                      {g.title}\n                    </Text>\n                    <List class=\"m-0 flex list-none flex-col gap-4 p-0\">\n                      <For each={g.links ?? []}>{(item) => (\n                        <ListItem data-slot=\"links-row\">\n                          <MenuEntry href={item.href} class=\"text-xs leading-5 text-muted-foreground\">\n                            {item.name}\n                          </MenuEntry>\n                        </ListItem>\n                      )}</For>\n                    </List>\n                  </Stack>\n                )}</For>\n              </Group>\n            </NavBlock>\n          ) : null}\n        </Box>\n      </Container>\n    </Block>\n  );\n}\n",
      "path": "components/footer-card.tsx",
      "target": "components/footer-card.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "solid",
      "component"
    ]
  },
  "name": "footer-card",
  "registryDependencies": [
    "compose",
    "lucide-icon",
    "mega-menu",
    "menu-entry",
    "nav-block",
    "presets",
    "utils"
  ],
  "runtime": "solid",
  "title": "Footer Card",
  "type": "registry:component"
}
