import { z } from "zod/v4";
import type { JSX } from "solid-js";
import type { ComponentMeta } from "../../meta";
export const TooltipRootPropsSchema = z.object({
  open: z.boolean().optional(),
  defaultOpen: z.boolean().optional(),
  disabled: z.boolean().optional(),
  openDelay: z.number().optional(),
  closeDelay: z.number().optional(),
});
export interface TooltipRootProps extends z.infer<typeof TooltipRootPropsSchema> { onOpenChange?: (open: boolean) => void; children: JSX.Element; }
export const TooltipMeta: ComponentMeta = {
  name: "Tooltip",
  description: "Floating label that appears on hover/focus to describe an element",
  parts: ["Root", "Trigger", "Portal", "Content", "Arrow"] as const,
  requiredParts: ["Root", "Trigger", "Content"] as const,
} as const;
