Strata - v1.4.10
    Preparing search index...

    Interface TooltipProps

    Props for the Tooltip component.

    Provides a context-sensitive information overlay that follows the mouse or anchors to elements.

    interface TooltipProps {
        backgroundColor?: string;
        borderColor?: string;
        children?: ReactNode;
        className?: string;
        description?: string;
        fontSize?: number;
        hideDelay?: number;
        maxWidth?: number;
        padding?: number;
        rarity?: string;
        rarityColor?: string;
        showDelay?: number;
        stats?: { color?: string; label: string; value: string | number }[];
        textColor?: string;
        title?: string;
        visible?: boolean;
        x?: number;
        y?: number;
    }

    Hierarchy

    Index

    Properties

    backgroundColor?: string

    CSS-compatible background color string.

    borderColor?: string

    CSS-compatible border color string.

    children?: ReactNode

    Additional React children to render within the tooltip.

    className?: string

    Custom CSS class for styling.

    description?: string

    Detailed descriptive text.

    fontSize?: number

    Base font size in pixels.

    hideDelay?: number

    Delay in milliseconds before hiding the tooltip.

    maxWidth?: number

    Maximum width in pixels.

    padding?: number

    Internal padding in pixels.

    rarity?: string

    Display string for item rarity.

    rarityColor?: string

    Color string for rarity text or border.

    showDelay?: number

    Delay in milliseconds before showing the tooltip.

    stats?: { color?: string; label: string; value: string | number }[]

    Key-value pairs of statistics to display (e.g., for item stats).

    textColor?: string

    CSS-compatible text color string.

    title?: string

    Main heading of the tooltip.

    visible?: boolean

    Toggles visibility. Default: true.

    x?: number

    Current screen X position in pixels.

    y?: number

    Current screen Y position in pixels.