{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "feature-card",
  "type": "registry:component",
  "title": "Feature card",
  "description": "An announcement or cover with a decorative corner icon, background image, and composed actions.",
  "categories": [
    "layout"
  ],
  "dependencies": [],
  "registryDependencies": [
    "card"
  ],
  "files": [
    {
      "path": "src/registry/overtrue/feature-card.tsx",
      "type": "registry:component",
      "target": "components/overtrue/feature-card.tsx",
      "content": "import type { ComponentProps } from \"react\";\nimport { Card, CardContent } from \"@/components/ui/card\";\nimport { cn } from \"@/lib/utils\";\n\n/** Compose with CardTitle, CardDescription and your own actions. */\nexport function FeatureCard({\n  className,\n  ...props\n}: ComponentProps<typeof Card>) {\n  return (\n    <Card\n      data-slot=\"feature-card\"\n      className={cn(\n        \"group/feature relative isolate flex min-w-0 flex-col gap-0 overflow-hidden rounded-2xl border border-border/70 bg-card py-0 text-card-foreground ring-0\",\n        \"bg-[radial-gradient(120%_70%_at_50%_-10%,color-mix(in_oklab,var(--color-primary)_9%,transparent),transparent_65%)]\",\n        \"shadow-[0_1px_2px_rgb(0_0_0/0.04),0_8px_24px_-12px_rgb(0_0_0/0.10)] dark:shadow-[inset_0_1px_0_rgb(255_255_255/0.05),0_1px_2px_rgb(0_0_0/0.5)]\",\n        className,\n      )}\n      {...props}\n    />\n  );\n}\n\n/** Decorative only: keep meaningful illustrations in MediaCard instead. */\nexport function FeatureCardBackground({\n  className,\n  ...props\n}: Omit<ComponentProps<\"img\">, \"alt\" | \"children\">) {\n  return (\n    <div\n      aria-hidden=\"true\"\n      data-slot=\"feature-card-background\"\n      className=\"pointer-events-none absolute inset-0 -z-10 overflow-hidden\"\n    >\n      <img\n        {...props}\n        alt=\"\"\n        className={cn(\n          \"size-full object-cover transition-transform duration-1000 ease-[cubic-bezier(0.22,1,0.36,1)] group-hover/feature:scale-[1.03] motion-reduce:transition-none motion-reduce:group-hover/feature:scale-100\",\n          className,\n        )}\n      />\n      <div className=\"absolute inset-0 bg-gradient-to-t from-black/85 via-black/45 to-black/15\" />\n      <div className=\"absolute inset-0 rounded-[inherit] shadow-[inset_0_1px_0_rgb(255_255_255/0.12)]\" />\n    </div>\n  );\n}\n\n/** Pass a decorative icon or illustration as children; no interactive content. */\nexport function FeatureCardDecoration({\n  className,\n  children,\n}: Pick<ComponentProps<\"div\">, \"className\" | \"children\">) {\n  return (\n    <div\n      aria-hidden=\"true\"\n      data-slot=\"feature-card-decoration\"\n      className={cn(\n        \"pointer-events-none absolute -top-10 -right-10 -z-10 flex size-52 rotate-12 items-center justify-center rounded-full text-primary/25 [&>svg]:size-32\",\n        \"bg-[radial-gradient(circle_at_center,color-mix(in_oklab,var(--color-primary)_15%,transparent),color-mix(in_oklab,var(--color-primary)_6%,transparent)_55%,transparent_71%)]\",\n        className,\n      )}\n    >\n      <span className=\"absolute inset-0 rounded-full border border-current opacity-30\" />\n      <span className=\"absolute inset-7 rounded-full border border-current opacity-40\" />\n      <span className=\"absolute inset-14 rounded-full bg-current opacity-10 blur-xl\" />\n      {children}\n    </div>\n  );\n}\n\nexport function FeatureCardContent({\n  className,\n  ...props\n}: ComponentProps<typeof CardContent>) {\n  return (\n    <CardContent\n      className={cn(\"flex flex-col items-start gap-4 p-6 sm:p-8\", className)}\n      {...props}\n    />\n  );\n}\n"
    }
  ],
  "docs": "Documentation: https://ui.overtrue.xyz/components/feature-card. Requires an initialized shadcn/ui project with Tailwind CSS v4."
}
