Tooltip
A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.
Tooltips are essential for clarifying icons or truncated text. Our implementation ensures they are accessible via keyboard focus and screen readers.
Accessibility Features
- Trigger: Can be triggered by both
hoverandfocus. - Dismissible: Can be dismissed with
Esckey.
Usage Example
import { Tooltip, TooltipTrigger, TooltipContent } from '@holmdigital/components'; <Tooltip> <TooltipTrigger>Hover me</TooltipTrigger> <TooltipContent>Detailed information here</TooltipContent> </Tooltip>