import { Tooltip as TooltipPrimitive } from "@kobalte/core/tooltip"; import type { ComponentProps, ValidComponent } from "solid-js"; import { splitProps } from "solid-js"; import { cn } from "@/lib/cn"; // Kobalte's tooltip opens on hover and on keyboard focus, so a focusable // trigger reaches keyboard users too. It is deliberately not a touch surface: // anything a tooltip says must also be readable without it, since a tap can // never open one. export const Tooltip = TooltipPrimitive; export const TooltipTrigger = TooltipPrimitive.Trigger; export function TooltipContent( props: ComponentProps>, ) { const [local, rest] = splitProps(props as ComponentProps, [ "class", ]); return ( ); }