{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "faq-parts",
  "title": "FAQ parts",
  "description": "What the FAQ blocks share: a question and its answer, who to ask about the rest, and the section they sit in.",
  "dependencies": [],
  "registryDependencies": [
    "https://kinoui.com/r/hero-parts.json",
    "https://kinoui.com/r/link-target.json",
    "https://kinoui.com/r/section-heading.json"
  ],
  "files": [
    {
      "path": "registry/lib/faq-parts.tsx",
      "content": "'use client'\n\nimport { sectionColumnClassName } from '@/registry/lib/hero-parts'\nimport { linkLandingClassName } from '@/registry/lib/link-target'\nimport type { SectionHeadingLevel } from '@/registry/lib/section-heading'\nimport type { ComponentProps, ReactNode } from 'react'\n\nimport { cn } from '@/lib/utils'\n\n/*\n * What the FAQ blocks share: a question and its answer, the line that offers\n * a person for what the answers don't cover, and the section they stand in.\n * A link to a question, `#refunds`, opens it from anywhere through\n * `registry/lib/link-target`.\n */\n\n/** A question a visitor asks, and its answer. */\ninterface FaqQuestion {\n  /** Tells the questions apart, and names this one in a link to it: `#cancel` opens it. */\n  value: string\n  question: string\n  answer: ReactNode\n}\n\n/** What every FAQ block takes. */\ninterface FaqSectionProps extends Omit<\n  ComponentProps<'section'>,\n  'title' | 'children' | 'defaultValue' | 'onChange'\n> {\n  title: ReactNode\n  description?: ReactNode\n  /** A few words above the title that name the topic. */\n  eyebrow?: ReactNode\n  /** The title's level: `h2` under the page's `h1`. Each question is a level under it. */\n  heading?: SectionHeadingLevel\n  /** Who to ask about what the answers don't cover: a `FaqContact`. */\n  contact?: ReactNode\n}\n\n/**\n * The section every arrangement stands in, laid out by its own width. While\n * a page loads on a link to a question, it lands open, with nothing moving.\n */\nconst faqSectionClassName = cn(\n  '@container/faq relative flex min-h-full w-full min-w-0 flex-col bg-background',\n  linkLandingClassName,\n)\n\n/** The content's column: the page's, with a section's room above and below. */\nconst faqColumnClassName = sectionColumnClassName\n\n/** A question's words, at a size that reads as a page's, not a panel's. */\nconst faqQuestionClassName = 'text-base font-medium text-pretty'\n\n/** An answer's words: muted beside the question, and no wider than reads well. */\nconst faqAnswerClassName =\n  'text-muted-foreground max-w-prose text-base text-pretty [&_a]:text-foreground [&_a]:font-medium [&_a]:underline [&_a]:underline-offset-4 [&_p+p]:mt-3'\n\n/**\n * Who to ask about what the answers don't cover: their faces, a line on how\n * soon they answer, and the way to reach them.\n */\nfunction FaqContact({\n  title,\n  faces,\n  action,\n  className,\n  children,\n}: {\n  /** Such as Still have a question? */\n  title: ReactNode\n  /** The people who answer, as an `AvatarStack`. */\n  faces?: ReactNode\n  /** The way to reach them: a `NudgeLink`. */\n  action: ReactNode\n  className?: string\n  /** A line on who answers and how soon, such as Maya and Tomás answer within a few hours. */\n  children?: ReactNode\n}) {\n  return (\n    <div\n      data-slot='faq-contact'\n      className={cn('flex min-w-0 items-start gap-3 text-sm', className)}\n    >\n      {faces ? <div className='shrink-0'>{faces}</div> : null}\n      <div className='flex min-w-0 flex-col items-start gap-1'>\n        <p className='text-foreground font-medium text-pretty'>\n          <bdi>{title}</bdi>\n        </p>\n        {children ? (\n          <p className='text-muted-foreground text-pretty'>\n            <bdi>{children}</bdi>\n          </p>\n        ) : null}\n        <div className='mt-1'>{action}</div>\n      </div>\n    </div>\n  )\n}\n\nexport {\n  faqAnswerClassName,\n  faqColumnClassName,\n  FaqContact,\n  type FaqSectionProps,\n  type FaqQuestion,\n  faqQuestionClassName,\n  faqSectionClassName,\n}\n",
      "type": "registry:lib",
      "target": "@lib/faq-parts.tsx"
    }
  ],
  "type": "registry:lib"
}