/*! Strand UI | MIT License | dillingerstaffing.com */ import type { JSX } from "preact"; import { forwardRef } from "preact/compat"; import { cx } from "../../internal/index.js"; export interface LabTipProps extends JSX.HTMLAttributes { /** Show the bubble without hover or focus. */ pinned?: boolean; } /** A hover-driven tooltip specimen (CSS only; not the Tooltip component). */ export const LabTip = forwardRef( ({ pinned = false, className = "", children, ...rest }, ref) => ( {children} ), ); LabTip.displayName = "LabTip"; export type LabTipBubblePlacement = "top" | "bottom" | "left" | "right"; export interface LabTipBubbleProps extends JSX.HTMLAttributes { /** Side of the trigger the bubble sits on. */ placement?: LabTipBubblePlacement; } /** The bubble of a tip specimen. */ export const LabTipBubble = forwardRef( ({ placement = "top", className = "", children, ...rest }, ref) => ( {children} ), ); LabTipBubble.displayName = "LabTipBubble";