{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "section-heading",
  "title": "Section heading",
  "description": "The heading over a section of a landing page, as the Pricing and Features blocks share it: a few words naming the topic, the title, one sentence under it, and whatever the section puts below.",
  "dependencies": [],
  "files": [
    {
      "path": "registry/lib/section-heading.tsx",
      "content": "import type { ReactNode } from 'react'\n\nimport { cn } from '@/lib/utils'\n\n/*\n * The heading over a section of a landing page, as the Pricing and the\n * Features blocks share it: a small line that names the topic, the title,\n * one sentence under it, and whatever the section puts below, such as a\n * switch or a link.\n */\n\n/** The levels a section's title takes: `h2` under the page's `h1`, unless the section is the page. */\ntype SectionHeadingLevel = 'h1' | 'h2' | 'h3'\n\n/** The level of the headings inside a section, one under its title. */\nconst HEADING_BELOW = { h1: 'h2', h2: 'h3', h3: 'h4' } as const\n\nfunction SectionHeading({\n  id,\n  eyebrow,\n  title,\n  description,\n  heading = 'h2',\n  align = 'center',\n  className,\n  titleClassName,\n  children,\n}: {\n  /** The title's id, for the section's `aria-labelledby`. */\n  id: string\n  /** A few words above the title that name the topic, such as Planning. */\n  eyebrow?: ReactNode\n  title: ReactNode\n  description?: ReactNode\n  heading?: SectionHeadingLevel\n  align?: 'center' | 'start'\n  className?: string\n  /** Sizes of the title's own, where a section speaks louder, as a Call to action's close does. */\n  titleClassName?: string\n  /** Below the words: a switch, or a link to more. */\n  children?: ReactNode\n}) {\n  const Title = heading\n  return (\n    <header\n      data-slot='section-heading'\n      className={cn(\n        'flex min-w-0 flex-col gap-3',\n        align === 'center' ? 'items-center text-center' : 'items-start',\n        className,\n      )}\n    >\n      <div\n        className={cn(\n          'flex min-w-0 flex-col gap-2',\n          align === 'center' ? 'items-center' : 'items-start',\n        )}\n      >\n        {eyebrow ? (\n          <p className='text-muted-foreground text-xs font-medium tracking-wider uppercase'>\n            <bdi>{eyebrow}</bdi>\n          </p>\n        ) : null}\n        <Title\n          id={id}\n          className={cn(\n            'text-3xl font-medium tracking-tight text-balance @3xl:text-4xl',\n            titleClassName,\n          )}\n        >\n          {/* Its own direction, so its words read the same way round right to left. */}\n          <bdi>{title}</bdi>\n        </Title>\n        {description ? (\n          <p className='text-muted-foreground max-w-prose text-pretty'>\n            <bdi>{description}</bdi>\n          </p>\n        ) : null}\n      </div>\n      {children}\n    </header>\n  )\n}\n\nexport { HEADING_BELOW, SectionHeading, type SectionHeadingLevel }\n",
      "type": "registry:lib",
      "target": "@lib/section-heading.tsx"
    }
  ],
  "type": "registry:lib"
}