addTooltip: Add an information tooltip to a label

View source: R/inputs.R

addTooltipR Documentation

Add an information tooltip to a label

Description

Puts an info icon after the label. Hovering over the label or the icon shows tooltipText. Every ⁠nav*()⁠ input and output function calls this for you through its tooltipText argument. Call it directly only when building your own inputs.

Usage

addTooltip(label, tooltipText)

Arguments

label

The label: a string or a 'shiny' tag.

tooltipText

Text to show on hover. NA or NULL means no tooltip, and the label is returned unchanged.

Value

The label, with a tooltip if one was given.

Examples

addTooltip("Upload data", "CSV files only")
addTooltip("Upload data", NA)

EZRShiny documentation built on Oct. 10, 2026, 5:08 p.m.