Skip to main content

TooltipProps

Props for Tooltip

Properties

align?

optional align: "end" | "start" | "center"

The preferred alignment against the anchor.


arrow?

optional arrow: boolean

Whether to show an arrow


children

children: ReactNode

The element that triggers the tooltip


className?

optional className: string

Class name for the tooltip content


content

content: ReactNode

The content to display inside the tooltip


delayDuration?

optional delayDuration: number

How long to wait before opening a tooltip. Specified in milliseconds. Default: 350


disabled?

optional disabled: boolean

Whether the tooltip is disabled


key?

optional key: string

A unique identifier for the tooltip


side?

optional side: "left" | "right" | "top" | "bottom"

The preferred side of the anchor to render the tooltip.


sideOffset?

optional sideOffset: number

The distance in pixels from the anchor. Default: 4


skipDelayDuration?

optional skipDelayDuration: number

Another tooltip will open instantly if the previous tooltip is closed within this timeout. Specified in milliseconds. Default: 0