{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "pull-quote",
  "title": "Pull Quote",
  "description": "Highlighted quotation lifted out of long-form content: a short decorative rule, the quote and an optional attribution.",
  "dependencies": [
    "@vllnt/ui@^0.3.0"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/default/pull-quote/pull-quote.tsx",
      "content": "import { cva } from \"class-variance-authority\";\n\nimport { cn } from \"@vllnt/ui\";\n\nconst pullQuoteVariants = cva(\n  \"flex flex-col font-[family-name:var(--font-sans)] text-foreground\",\n  {\n    defaultVariants: {\n      size: \"md\",\n    },\n    variants: {\n      size: {\n        lg: \"gap-6\",\n        md: \"gap-4\",\n      },\n    },\n  },\n);\n\nconst pullQuoteRuleVariants = cva(\"block rounded-full bg-primary\", {\n  defaultVariants: {\n    size: \"md\",\n  },\n  variants: {\n    size: {\n      lg: \"h-1 w-16\",\n      md: \"h-0.5 w-12\",\n    },\n  },\n});\n\nconst pullQuoteBodyVariants = cva(\n  \"font-[family-name:var(--font-display)] tracking-tight text-balance\",\n  {\n    defaultVariants: {\n      size: \"md\",\n    },\n    variants: {\n      size: {\n        lg: \"text-[length:var(--font-size-h2)] leading-[var(--line-height-h2)]\",\n        md: \"text-[length:var(--font-size-h4)] leading-[var(--line-height-h4)]\",\n      },\n    },\n  },\n);\n\nconst pullQuoteCiteVariants = cva(\"text-muted-foreground\", {\n  defaultVariants: {\n    size: \"md\",\n  },\n  variants: {\n    size: {\n      lg: \"text-[length:var(--font-size-body)] leading-[var(--line-height-body)]\",\n      md: \"text-[length:var(--font-size-body-sm)] leading-[var(--line-height-body-sm)]\",\n    },\n  },\n});\n\n/** Props for {@link PullQuote}. */\nexport type PullQuoteProps = Omit<\n  React.ComponentPropsWithoutRef<\"figure\">,\n  \"children\"\n> & {\n  /** The quoted text. */\n  children: React.ReactNode;\n  /** Attribution shown under the quote, rendered in a `<figcaption>`. */\n  cite?: React.ReactNode;\n  ref?: React.Ref<HTMLElement>;\n  /** Type scale. `lg` is larger display type. Defaults to `md`. */\n  size?: \"lg\" | \"md\";\n};\n\n/**\n * Highlighted quotation lifted out of long-form content: a short decorative\n * rule, the quote and an optional attribution.\n *\n * Renders a `<figure>` holding a `<blockquote>` and, when you pass `cite`, a\n * `<figcaption>`. The rule has `aria-hidden`. Pure presentation: it composes no\n * other component and reads no state.\n *\n * @example\n * <PullQuote cite=\"Ada Lovelace\" size=\"lg\">\n *   The engine weaves algebraic patterns.\n * </PullQuote>\n */\nconst PullQuote = ({\n  children,\n  cite,\n  className,\n  ref,\n  size = \"md\",\n  ...props\n}: PullQuoteProps): React.ReactElement => (\n  <figure\n    className={cn(pullQuoteVariants({ size }), className)}\n    ref={ref}\n    {...props}\n  >\n    <span aria-hidden=\"true\" className={pullQuoteRuleVariants({ size })} />\n    <blockquote className={pullQuoteBodyVariants({ size })}>\n      {children}\n    </blockquote>\n    {cite ? (\n      <figcaption className={pullQuoteCiteVariants({ size })}>\n        {cite}\n      </figcaption>\n    ) : null}\n  </figure>\n);\nPullQuote.displayName = \"PullQuote\";\n\nexport { PullQuote };\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component",
  "version": "0.3.0",
  "stability": "stable",
  "platforms": [
    "web"
  ]
}
