{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "cta-band",
  "title": "CTA Band",
  "description": "Full-width call-to-action band with title, description, optional icon and divider, and an actions slot.",
  "dependencies": [
    "@vllnt/ui@^0.3.0"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/default/cta-band/cta-band.tsx",
      "content": "import * as React from \"react\";\n\nimport { cva } from \"class-variance-authority\";\n\nimport { cn } from \"@vllnt/ui\";\nimport { Heading, type HeadingLevel } from \"@vllnt/ui\";\nimport { Separator } from \"@vllnt/ui\";\nimport { Text } from \"@vllnt/ui\";\n\n/** Surface tone of a {@link CtaBand}. */\nexport type CtaBandTone = \"default\" | \"muted\";\n\n/** Props for {@link CtaBand}. */\nexport type CtaBandProps = Omit<\n  React.ComponentPropsWithoutRef<\"section\">,\n  \"title\"\n> & {\n  /** Buttons or links rendered side by side after the header, e.g. a primary and a secondary action. */\n  actions?: React.ReactNode;\n  /** Supporting copy under the title. */\n  description?: React.ReactNode;\n  /** Draws a rule between the header and the description. */\n  divider?: boolean;\n  /** Semantic rank of the title, `h1`–`h6`. The visual scale stays fixed. */\n  headingLevel?: HeadingLevel;\n  /** Decorative glyph before the title. Hidden from assistive technology. */\n  icon?: React.ReactNode;\n  /** Call-to-action headline. */\n  title: React.ReactNode;\n  /** `default` sits on the page background, `muted` on the muted surface. */\n  tone?: CtaBandTone;\n};\n\nconst ctaBandVariants = cva(\n  \"flex w-full flex-col gap-6 border-y border-border px-6 py-10 text-foreground md:flex-row md:items-center md:justify-between md:gap-10 md:px-10 md:py-12\",\n  {\n    defaultVariants: {\n      tone: \"default\",\n    },\n    variants: {\n      tone: {\n        default: \"bg-background\",\n        muted: \"bg-muted\",\n      },\n    },\n  },\n);\n\n/**\n * Full-width call-to-action band: a title with optional icon, description and\n * divider, followed by a row of actions that stacks under the copy on small\n * screens. Renders a `<section>`; pass `aria-labelledby` or `aria-label` to\n * expose it as a landmark. Server-component friendly: no state, no hooks.\n *\n * @example\n * <CtaBand\n *   actions={<Button>Get started</Button>}\n *   description=\"Free for personal projects.\"\n *   title=\"Ship your next release faster\"\n * />\n */\nexport const CtaBand = ({\n  actions,\n  className,\n  description,\n  divider = false,\n  headingLevel = 2,\n  icon,\n  ref: reference,\n  title,\n  tone = \"default\",\n  ...props\n}: CtaBandProps & { ref?: React.Ref<HTMLElement> }) => (\n  <section\n    className={cn(ctaBandVariants({ tone }), className)}\n    data-slot=\"cta-band\"\n    data-tone={tone}\n    ref={reference}\n    {...props}\n  >\n    <div className=\"flex min-w-0 flex-1 flex-col gap-3\">\n      <div className=\"flex items-center gap-3\">\n        {icon ? (\n          <span\n            aria-hidden=\"true\"\n            className=\"inline-flex shrink-0 text-muted-foreground [&_svg]:size-6\"\n            data-slot=\"cta-band-icon\"\n          >\n            {icon}\n          </span>\n        ) : null}\n        <Heading level={headingLevel} size={2}>\n          {title}\n        </Heading>\n      </div>\n      {divider ? <Separator data-slot=\"cta-band-divider\" /> : null}\n      {description ? (\n        <Text\n          data-slot=\"cta-band-description\"\n          size=\"lead\"\n          tone={tone === \"muted\" ? \"default\" : \"muted\"}\n        >\n          {description}\n        </Text>\n      ) : null}\n    </div>\n    {actions ? (\n      <div\n        className=\"flex shrink-0 flex-col gap-3 sm:flex-row sm:flex-wrap sm:items-center\"\n        data-slot=\"cta-band-actions\"\n      >\n        {actions}\n      </div>\n    ) : null}\n  </section>\n);\n\nCtaBand.displayName = \"CtaBand\";\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component",
  "version": "0.3.0",
  "stability": "stable",
  "platforms": [
    "web"
  ]
}
