ds_tooltip: Tooltip

View source: R/ds-tooltip.R

ds_tooltipR Documentation

Tooltip

Description

Add a tooltip to an element by attaching data-tooltip attributes.

Usage

ds_tooltip(tag, text, placement = "top")

Arguments

tag

The element to attach the tooltip to.

text

The tooltip text.

placement

Tooltip placement: "top", "bottom", "left", or "right".

Value

The element with tooltip attributes added.

Examples

ds_tooltip(
  ds_button("Hover me"),
  text = "This is helpful information"
)

shinyds documentation built on Aug. 22, 2026, 5:08 p.m.