The trigger: a single element. Wrap plain text in Tooltip.TriggerDecorator
content
ReactNode
—
Tooltip content (null = no tooltip)
compact
boolean
false
Short 1-3 word tooltips, inverse styling (Material's plain tooltip on Android)
maxWidth
number | "none"
300
Max width of tooltip; none keeps it on one line
side
"top" | "right" | "bottom" | "left"
"top"
Preferred side
sideOffset
number
5
Distance from trigger (at most 4dp on Android)
align
"start" | "center" | "end"
"center"
Alignment
alignOffset
number
0
Alignment offset
gutterSize
"sm" | "md" | "lg"
"md"
Content padding (iOS)
forceOpen
boolean
—
Force open or closed
contentStyle
StyleProp<ViewStyle>
—
Style of the tooltip's panel
testID
string
—
Test id
Tooltip.TriggerDecorator turns text into a trigger that a tap or a long press opens (focusable, default true, makes it a stop of the web's keyboard). It is a Text of its own, so it takes variant, size, weight, color and style for the type the web's decorator inherits from the text around it. The web's openDelay, interactive and preventUnintentionalClickToClose are for a pointer's hover and have no counterpart; contentStyle stands for contentClassName.