A tooltip is a brief, informative message that appears when a user interacts with an element. Tooltips are usually initiated in one of two ways: through a mouse-hover gesture or through a keyboard-hover gesture.

Example

rc.tooltip(
    rc.text("Example", font_size=30),
    label="Tooltip helper.",
)

rc.Tooltip

A tooltip message to appear.

PropType | ValuesDefault
arrow_padding
int
arrow_shadow_color
str
arrow_size
int
delay
int
close_on_click
bool
close_on_esc
bool
close_on_mouse_down
bool
default_is_open
bool
direction
"ltr" | "rtl"
gutter
int
has_arrow
bool
is_disabled
bool
is_open
bool
label
str
open_delay
int
placement
str
should_wrap_children
bool

Event Triggers

See the full list of default event triggers
TriggerDescription
on_close Fired when the tooltip is closing.
on_open Fired when the tooltip is opened.