Skip to main content

IInfoTooltipProps

@spartanfx/react v1.2.2


@spartanfx/react / index / IInfoTooltipProps

Interface: IInfoTooltipProps

Props for the InfoTooltip component.

Remarks

This interface extends Fluent UI’s ITooltipHostProps, allowing consumers to pass through all standard tooltip configuration options (such as content, delay, calloutProps, etc.).

Additional props are provided to customize the icon and its visual variant.

Extends

Methods

onTooltipToggle()?

optional onTooltipToggle(isTooltipVisible): void;

Notifies when tooltip becomes visible or hidden, whatever the trigger was.

Parameters

isTooltipVisible

boolean

Returns

void

Inherited from

ITooltipHostProps.onTooltipToggle

Properties

Options

PropertyTypeDefaultDescription
variant?"warning" | "default" | "primary"'default'Visual variant of the tooltip icon. Remarks The variant controls the icon color and emphasis via SCSS module classes.

Advanced & escape hatches

PropertyTypeDefaultDescription
iconProps?object-Optional properties for the tooltip icon. Use iconName to choose an in-house glyph (see SpartanIconName) and className to style it. Remarks Kept as iconProps (with an iconName key) for backward compatibility; the glyph is now rendered by the in-house inline-SVG Icon, not a Fluent icon font.
iconProps.className?string--
iconProps.iconName?string--
iconProps.style?CSSProperties--

+ 267 inherited members. Fluent UI ITooltipHostProps props and standard HTML/ARIA attributes (e.g. className, onClick, aria-*) are also accepted but omitted here for clarity.