{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "cta-parts",
  "title": "Call to action parts",
  "description": "What the Call to action blocks share: the words that close a landing page, the main action with a quieter one beside it, the note under them and who has said yes already.",
  "dependencies": [],
  "registryDependencies": [
    "https://kinoui.com/r/hero-parts.json",
    "https://kinoui.com/r/section-heading.json"
  ],
  "files": [
    {
      "path": "registry/lib/cta-parts.tsx",
      "content": "import { displayTitleClassName, sectionColumnClassName } from '@/registry/lib/hero-parts'\nimport { SectionHeading, type SectionHeadingLevel } from '@/registry/lib/section-heading'\nimport type { ComponentProps, ReactNode } from 'react'\n\nimport { cn } from '@/lib/utils'\n\n/*\n * What the Call to action blocks share: the words that close a landing page\n * and ask for one thing, the main action with a quieter one beside it, the\n * line under them that makes saying yes easy, and who has said yes already.\n */\n\n/** What every Call to action block takes. */\ninterface CtaProps extends Omit<ComponentProps<'section'>, 'title' | 'children'> {\n  title: ReactNode\n  description?: ReactNode\n  /** A few words above the title that name the topic. */\n  eyebrow?: ReactNode\n  /** What makes saying yes easy, under the action, such as Free for teams up to 10. */\n  note?: ReactNode\n  /** Who has said yes already, under it all: a `CtaProof`. */\n  proof?: ReactNode\n  /** The title's level: `h2` under the page's `h1`. */\n  heading?: SectionHeadingLevel\n  /** The main action first, a link in a Button's look, then a quieter one, a `NudgeLink`. */\n  actions?: ReactNode\n}\n\n/** The section every arrangement stands in, laid out by its own width, in the page's column. */\nconst ctaSectionClassName =\n  '@container/cta relative isolate flex min-h-full w-full min-w-0 flex-col overflow-x-clip bg-background'\n\n/** The title closes the page, so it speaks louder than a section's: the Hero's display type, with room under it. */\nconst ctaTitleClassName = cn(displayTitleClassName, 'mb-2 text-4xl @3xl:text-5xl')\n\nconst ctaColumnClassName = sectionColumnClassName\n\n/** The line under the action: quiet, and short enough to read at a glance. */\nfunction CtaNote({ children }: { children: ReactNode }) {\n  return (\n    <p className='text-muted-foreground text-sm text-pretty'>\n      <bdi>{children}</bdi>\n    </p>\n  )\n}\n\n/** Who has said yes already: faces, or a rating, beside a line that counts them. */\nfunction CtaProof({\n  className,\n  children,\n  label,\n}: {\n  className?: string\n  /** The faces or marks before the line. */\n  children?: ReactNode\n  /** The line, such as Joined by 4,200 teams this year. */\n  label: ReactNode\n}) {\n  return (\n    <div\n      data-slot='cta-proof'\n      className={cn('flex min-w-0 items-center gap-3', className)}\n    >\n      {children}\n      <p className='text-muted-foreground min-w-0 text-sm text-pretty tabular-nums'>\n        <bdi>{label}</bdi>\n      </p>\n    </div>\n  )\n}\n\n/**\n * The words of a call to action: the title and its line, then the actions,\n * the note under them and the proof, each group further apart than the\n * lines within it.\n */\nfunction CtaWords({\n  titleId,\n  title,\n  description,\n  eyebrow,\n  heading = 'h2',\n  align = 'center',\n  actions,\n  note,\n  proof,\n}: Pick<\n  CtaProps,\n  'title' | 'description' | 'eyebrow' | 'heading' | 'actions' | 'note' | 'proof'\n> & {\n  titleId: string\n  align?: 'center' | 'start'\n}) {\n  const center = align === 'center'\n  return (\n    <SectionHeading\n      id={titleId}\n      eyebrow={eyebrow}\n      title={title}\n      description={description}\n      heading={heading}\n      align={align}\n      className='gap-8'\n      titleClassName={ctaTitleClassName}\n    >\n      {actions || note ? (\n        <div\n          className={cn(\n            'flex min-w-0 flex-col gap-3',\n            center ? 'items-center' : 'items-start',\n          )}\n        >\n          {actions ? (\n            <div\n              className={cn(\n                'flex flex-wrap items-center gap-x-6 gap-y-3',\n                center && 'justify-center',\n              )}\n            >\n              {actions}\n            </div>\n          ) : null}\n          {note ? <CtaNote>{note}</CtaNote> : null}\n        </div>\n      ) : null}\n      {proof}\n    </SectionHeading>\n  )\n}\n\nexport { ctaColumnClassName, CtaProof, type CtaProps, ctaSectionClassName, CtaWords }\n",
      "type": "registry:lib",
      "target": "@lib/cta-parts.tsx"
    }
  ],
  "type": "registry:lib"
}