Add tooltips to your document.

tippy(text, tooltip, ..., width = NULL, height = NULL, elementId = NULL)

tippy_this(elementId, tooltip, ...)

Arguments

text

Element text.

tooltip

Element tooltip.

...

Any other options from the official documentation.

height, width

height and width of sparkline htmlwidget specified in any valid CSS size unit.

elementId

string id as a valid CSS element id.

See also

Examples

tippy("Hover me!", tooltip = "Hi, I'm the tooltip!") tippy("Hover me!", tooltip = "Hi, I'm the tooltip!", placement = "right", theme = "light") tippy("Hover me!", tooltip = "Hi, I'm the tooltip!", animation = "scale", duration = 1000, placement = "bottom") tippy("Click me!", tooltip = "Hi, I'm the tooltip!", trigger = "click", theme = "light") # use tooltip on other elements. if(interactive()){ library(shiny) shinyApp( ui = fluidPage( textInput("input", "input with tooltip"), tippy("Some text", tooltip = "Tiiiip"), tippy_this("input", "Tooltip", placement = "right") ), server = function(input, output) {} ) }