import { z } from "zod/v4";
import type { JSX } from "solid-js";
import type { ComponentMeta } from "../../meta";
export const HoverCardRootPropsSchema = z.object({
  open: z.boolean().optional(),
  defaultOpen: z.boolean().optional(),
  openDelay: z.number().optional(),
  closeDelay: z.number().optional(),
});
export interface HoverCardRootProps extends z.infer<typeof HoverCardRootPropsSchema> { onOpenChange?: (open: boolean) => void; children: JSX.Element; }
export const HoverCardMeta: ComponentMeta = {
  name: "HoverCard",
  description: "Card that appears on hover to preview linked content without navigating",
  parts: ["Root", "Trigger", "Portal", "Content", "Arrow"] as const,
  requiredParts: ["Root", "Trigger", "Content"] as const,
} as const;
