Example


Basic tooltip with a button as a trigger.
Properties
Required
String
required
The text label to display in the tooltip.
Widget
required
The widget that triggers the tooltip on .
Layout
NeoTooltipPosition
default:"NeoTooltipPosition.top"
The position where the tooltip appears relative to the child widget.
Behavior
Duration
default:"Duration(seconds: 1)"
The delay before showing the tooltip on hover. Does not affect long press behavior on mobile.
Enums
NeoTooltipPosition
Position where the tooltip appears relative to the child widget.top: Tooltip appears above the childright: Tooltip appears to the right of the childbottom: Tooltip appears below the childleft: Tooltip appears to the left of the child
Best Practices
- Accessibility: Tooltips are essential for icon-only buttons and helpful for providing additional context.
Integration Notes
- Interaction Methods:
- Desktop: Hover to show tooltip after the specified delay
- Mobile: Long press to show tooltip immediately
- Dismissal: Tooltips automatically hide when:
- Mouse leaves the child area (desktop)
- User taps outside the tooltip (mobile, after long press)
- User performs other interactions

