{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hover-card",
  "type": "registry:ui",
  "dependencies": [
    "@kobalte/core"
  ],
  "files": [
    {
      "path": "ui/hover-card.tsx",
      "content": "import type { Component, ValidComponent } from \"solid-js\"\nimport { mergeProps, splitProps } from \"solid-js\"\n\nimport * as HoverCardPrimitive from \"@kobalte/core/hover-card\"\nimport type { PolymorphicProps } from \"@kobalte/core/polymorphic\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst HoverCard: Component<HoverCardPrimitive.HoverCardRootProps> = (props) => {\n  return <HoverCardPrimitive.Root data-slot=\"hover-card\" {...props} />\n}\n\nconst HoverCardTrigger = <T extends ValidComponent = \"a\">(\n  props: PolymorphicProps<T, HoverCardPrimitive.HoverCardTriggerProps<T>>\n) => <HoverCardPrimitive.Trigger data-slot=\"hover-card-trigger\" {...props} />\n\ntype HoverCardContentProps<T extends ValidComponent = \"div\"> =\n  HoverCardPrimitive.HoverCardContentProps<T> & {\n    class?: string | undefined\n  }\n\nconst HoverCardContent = <T extends ValidComponent = \"div\">(\n  rawProps: PolymorphicProps<T, HoverCardContentProps<T>>\n) => {\n  const props = mergeProps({ gutter: 4 }, rawProps)\n  const [local, others] = splitProps(props as HoverCardContentProps, [\"class\"])\n  return (\n    <HoverCardPrimitive.Portal data-slot=\"hover-card-portal\">\n      <HoverCardPrimitive.Content\n        class={cn(\n          \"cn-hover-card-content data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-(--kb-popper-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=closed]:animate-out data-[state=open]:animate-in\",\n          local.class\n        )}\n        data-slot=\"hover-card-content\"\n        {...others}\n      />\n    </HoverCardPrimitive.Portal>\n  )\n}\n\nexport { HoverCard, HoverCardTrigger, HoverCardContent }\n",
      "type": "registry:ui"
    }
  ]
}