Tooltip
Tooltip renders hover text above a trigger. If the component has children, those children become the trigger; otherwise it renders the trigger prop.
API
Props
Tooltip visibility is CSS hover-based through the wrapper group class.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Hover tooltip with text trigger or custom children
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)
ui.tooltip(props, children?)
lui.tooltip(props, children?)
| Prop | Type | Description |
|---|---|---|
content or label | string | Tooltip body text. |
trigger | string | Fallback trigger text when no children are passed. |
triggerClassName | string | Trigger span class. |
tooltipClassName, contentClassName | string | Tooltip bubble class. |
className, style | mixed | Common LUI styling props. |
Was this page helpful?
