Add tooltips to your document.
tippy(text, tooltip, ..., elementId = NULL)
tippy_this(elementId, tooltip, ...)
with_tippy(element, tooltip, ...)
Element text.
Element tooltip.
Any other options from the official documentation.
string
id as a valid CSS
element id.
An object of class shiny.tag
.
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(
with_tippy(textInput("input", "input with tooltip"), "Input text", placement = "right")
),
server = function(input, output) {}
)
}