Plugins

Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0

Tooltip

Tooltip using the host's short contextual help presentation.

Import

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

Declaration

export const Tooltip: HostComponent<TooltipProps>;

TooltipProps

Props accepted by the tooltip root.

export interface TooltipProps extends HostComponentProps {
    /** Delay before opening, in milliseconds. */
    delayDuration?: number;
}
PropTypeRequirementDescription
delayDurationnumberOptionalDelay before opening, in milliseconds.
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.