Plugins

Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0

TooltipContent

Tooltip Content using the host's short contextual help presentation.

Import

import { TooltipContent } from "@dartwic/interface-sdk/ui";

Declaration

export const TooltipContent: HostComponent<TooltipContentProps>;

TooltipContentProps

Props accepted by tooltip popup content.

export interface TooltipContentProps extends HostComponentProps {
    /** Preferred side of the trigger. */
    side?: "top" | "right" | "bottom" | "left";
    /** Distance from the trigger in pixels. */
    sideOffset?: number;
}
PropTypeRequirementDescription
side"top" | "right" | "bottom" | "left"OptionalPreferred side of the trigger.
sideOffsetnumberOptionalDistance from the trigger in pixels.
classNamestringOptionalAdditional Tailwind or host CSS classes.
childrenHostNodeOptionalChild content rendered by the host component.
idstringOptionalOptional DOM identifier.
styleRecord<string, unknown>OptionalInline style values passed to the host component.