Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.sure-developer.com/llms.txt

Use this file to discover all available pages before exploring further.

Tooltip

Tooltip renders hover text above a trigger. If the component has children, those children become the trigger; otherwise it renders the trigger prop.
ui.tooltip({
  trigger = 'Hover hint',
  content = 'This tooltip is rendered by LUI without Radix.'
})
ui.tooltip({
  content = 'Save changes'
}, function()
  ui.button('Save', onSave)
end)

API

ui.tooltip(props, children?)

Props

PropTypeDescription
content or labelstringTooltip body text.
triggerstringFallback trigger text when no children are passed.
triggerClassNamestringTrigger span class.
tooltipClassName, contentClassNamestringTooltip bubble class.
className, stylemixedCommon LUI styling props.
Tooltip visibility is CSS hover-based through the wrapper group class.