import { createSignal } from "solid-js" import { Tooltip, TooltipText } from "./tooltip" import { Button } from "@opencode/ui/button" import { Keybind } from "@opencode/ui/keybind" import { Menu } from "@opencode/ui/menu" const docs = `### Overview Floating tooltip built on Kobalte's tooltip primitive. ### API - \`value\`: Content rendered inside the floating tooltip. - \`children\`: The trigger element that activates the tooltip on hover/focus. - \`placement\`: Kobalte placement string (e.g. "top", "bottom", "left", "right"). - \`appearance\`: \`compact\` (default), \`standard\`, or \`large\`. - \`inactive\`: When true, renders only the trigger without tooltip behavior. - \`forceOpen\`: Forces the tooltip to stay open. - Inherits Kobalte Tooltip root props. ` export default { title: "UI/Tooltip", id: "ui-tooltip", component: Tooltip, tags: ["autodocs"], parameters: { frameHeight: "300px", frameBackground: "#fff", docs: { description: { component: docs, }, }, }, } function SimpleTip(props: { forceOpen?: boolean; inactive?: boolean }) { return (