{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero-floating-elements",
  "type": "registry:block",
  "title": "Hero Floating Elements Block",
  "description": "A Hero Floating Elements Block component for displaying a hero section.",
  "files": [
    {
      "path": "src/registry/blocks/hero-floating-elements.tsx",
      "type": "registry:block",
      "content": "import { useId, type ComponentProps } from \"react\";\nimport { Button } from \"@/components/ui/button\";\nimport { cn } from \"@/lib/utils\";\n\ntype Action = { label: string; href: string };\ntype Spec = { value: string; label: string };\n\nexport type HeroFloatingElementsProps = {\n  eyebrow?: string;\n  title?: string;\n  description?: string;\n  primaryAction?: Action;\n  secondaryAction?: Action;\n  specs?: Spec[];\n  /** Show the spec-sheet annotations around the headline and paragraph. */\n  annotations?: boolean;\n} & ComponentProps<\"section\">;\n\nconst DEFAULTS = {\n  eyebrow: \"Sundial · Spec sheet, rev. 2\",\n  title: \"Your timesheet, already filled in.\",\n  description:\n    \"Sundial notices the files, tickets and calendar events you work on and drafts your week. On Friday you skim it, fix one line and send it.\",\n  primaryAction: { label: \"Try it for a week\", href: \"#\" },\n  secondaryAction: { label: \"How tracking works\", href: \"#\" },\n  specs: [\n    { value: \"4.2 h\", label: \"Saved per person, per month\" },\n    { value: \"6 min\", label: \"Rounding, or none at all\" },\n    { value: \"52 s\", label: \"Median Friday review\" },\n  ],\n};\n\n/** A small mono label that sits on a frame edge, like a callout in a design file. */\nfunction Tag({ className, children }: { className?: string; children: React.ReactNode }) {\n  return (\n    <span\n      aria-hidden\n      className={cn(\n        \"absolute hidden bg-background px-1.5 font-mono text-[10px] uppercase tracking-wider whitespace-nowrap text-primary md:block\",\n        className\n      )}\n    >\n      {children}\n    </span>\n  );\n}\n\nexport default function HeroFloatingElements({\n  eyebrow = DEFAULTS.eyebrow,\n  title = DEFAULTS.title,\n  description = DEFAULTS.description,\n  primaryAction = DEFAULTS.primaryAction,\n  secondaryAction = DEFAULTS.secondaryAction,\n  specs = DEFAULTS.specs,\n  annotations = true,\n  className,\n  ...props\n}: HeroFloatingElementsProps) {\n  const headingId = useId();\n  const frame = annotations ? \"md:border md:border-dashed md:border-primary/50\" : \"\";\n\n  return (\n    <section\n      data-slot=\"hero-floating-elements\"\n      aria-labelledby={headingId}\n      className={cn(\"w-full bg-background text-foreground\", className)}\n      {...props}\n    >\n      <div className=\"mx-auto max-w-6xl px-6 py-20 md:py-28\">\n        <div className=\"flex items-baseline justify-between border-b pb-3 font-mono text-xs uppercase tracking-wider text-muted-foreground\">\n          <span>{eyebrow}</span>\n          <span>Fig. 1</span>\n        </div>\n\n        <div className={cn(\"relative mt-14 md:p-6\", frame)}>\n          {annotations && (\n            <>\n              <Tag className=\"-top-2 left-4\">H1 · 96 / 0.95 · −0.045em</Tag>\n              <Tag className=\"right-4 -bottom-2\">Measure 14ch</Tag>\n            </>\n          )}\n          <h1\n            id={headingId}\n            className=\"max-w-[14ch] text-5xl font-semibold leading-[0.95] tracking-[-0.045em] sm:text-6xl md:text-8xl\"\n          >\n            {title}\n          </h1>\n        </div>\n\n        <div className=\"mt-12 grid gap-10 md:grid-cols-12\">\n          <div className={cn(\"relative md:col-span-6 md:p-4\", frame)}>\n            {annotations && <Tag className=\"-top-2 left-3\">Body · 16 / 26 · muted</Tag>}\n            <p className=\"max-w-md text-base leading-relaxed text-muted-foreground\">\n              {description}\n            </p>\n          </div>\n          <div className=\"flex flex-wrap items-start gap-x-6 gap-y-3 md:col-span-6 md:justify-end md:pt-4\">\n            <Button asChild size=\"lg\" className=\"rounded-none\">\n              <a href={primaryAction.href}>{primaryAction.label}</a>\n            </Button>\n            <a\n              href={secondaryAction.href}\n              className=\"py-2 text-sm font-medium underline decoration-1 underline-offset-[6px] hover:text-muted-foreground\"\n            >\n              {secondaryAction.label}\n            </a>\n          </div>\n        </div>\n\n        {specs.length > 0 && (\n          <dl className=\"mt-20 grid border-t sm:grid-cols-3\">\n            {specs.map((spec, i) => (\n              <div\n                key={spec.label}\n                className={cn(\"border-b py-6 sm:border-b-0 sm:px-6\", i > 0 && \"sm:border-l\", i === 0 && \"sm:pl-0\")}\n              >\n                <dt className=\"font-mono text-xs uppercase tracking-wider text-muted-foreground\">\n                  {String(i + 1).padStart(2, \"0\")} · {spec.label}\n                </dt>\n                <dd className=\"mt-3 text-4xl font-semibold tracking-[-0.03em] tabular-nums\">\n                  {spec.value}\n                </dd>\n              </div>\n            ))}\n          </dl>\n        )}\n      </div>\n    </section>\n  );\n}\n"
    }
  ],
  "registryDependencies": [
    "button"
  ]
}
