ChromiaTooltip
A customizable tooltip component for displaying contextual information on hover or long press.Basic Usage
Parameters
Tooltip message to display
The widget to display the tooltip on
Whether to show the tooltip below the widget
Vertical offset from the widget (defaults to 24)
Duration to wait before showing (defaults to 500ms)
Duration to show the tooltip (defaults to 2 seconds)
Padding inside the tooltip
Margin around the tooltip
Custom decoration for the tooltip
Custom text style
Custom Styling
ChromiaTooltip.rich
Creates a rich tooltip with title and message.Basic Usage
Parameters
Title text for the tooltip
Message text for the tooltip
The widget to display the tooltip on
Whether to show the tooltip below the widget
Vertical offset from the widget
Duration to wait before showing
Duration to show the tooltip (defaults to 3 seconds for rich tooltips)
ChromiaHelpIcon
A help icon with a built-in tooltip.Basic Usage
Parameters
Tooltip message
Help icon to display
Icon size (defaults to 18)
Icon color
Example in Form
ChromiaLongPressTooltip
A custom tooltip that shows on long press instead of hover.Basic Usage
Parameters
Tooltip message
The widget to display the tooltip on
Duration to show the tooltip
Complete Example
Best Practices
- Keep it brief - Tooltip messages should be concise (1-2 sentences max)
- Use for clarification - Tooltips are best for providing additional context, not essential information
- Consider accessibility - Tooltips may not be accessible on touch devices without long press
- Don’t overuse - Too many tooltips can overwhelm users
- Rich tooltips for complex info - Use
ChromiaTooltip.richwhen you need a title and longer explanation
